Function at 0x4c98b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x8c
mov eax, dword [0x4dc00c]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x40], edx
xor ebx, ebx
xorps xmm0, xmm0
push edi
push ebx
movups xmmword [esi], xmm0
push 0x4ce5a8
mov dword [esp + 0x44], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.004b8730
mov edi, dword [esp + 0xb4]
lea ecx, [esp + 0xa0]
mov edx, dword [esp + 0xa0]
lea ebp, [esp + 0xa0]
mov eax, dword [esp + 0xb0]
cmp edi, 0x10
cmovae ecx, edx
cmovae ebp, edx
add eax, ecx
mov dword [esp + 0x40], eax
cmp ebp, eax
je 0x4c9c85
mov al, byte [ebp]
cmp al, 0x20
jne 0x4c9c2f
mov eax, dword [esp + 0x44]
dec eax
cmp ebx, eax
jge 0x4c9cad
push 0
push ecx
mov ecx, esi
call fcn.004cb9d0
mov dh, 0x74
mov dword [esp + 0x8c], 0
xor dl, dl
mov byte [esp + 0x2c], dh
mov al, 0x24
mov byte [esp + 0x33], dl
mov ah, 0x15
mov byte [esp + 0x33], 0
xor al, dh
mov dword [esp + 0x90], 0
xor ah, dh
mov byte [esp + 0x2d], al
mov cl, 0x2c
mov byte [esp + 0x31], ah
mov bl, 0x39
lea eax, [esp + 0x2d]
xor cl, dh
xor dl, dh
xor bl, dh
mov byte [esp + 0x2f], dl
mov ch, 0xe
mov byte [esp + 0x2e], cl
xor ch, dh
mov byte [esp + 0x30], bl
xorps xmm0, xmm0
mov byte [esp + 0x32], ch
movups xmmword [esp + 0x7c], xmm0
lea edx, [eax + 1]
nop dword [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c99b0
sub eax, edx
lea ecx, [esp + 0x7c]
push eax
lea eax, [esp + 0x31]
push eax
call fcn.004b8860
mov byte [esp + 0x14], 0x55
mov al, 0x60
xor al, byte [esp + 0x14]
xor bl, bl
mov byte [esp + 0x15], al
mov cl, 0xc
mov al, byte [esp + 0x14]
mov dl, 0x38
mov ch, 3
mov byte [esp + 0x1e], bl
mov dh, 0x6c
mov byte [esp + 0x13], 0x26
xor cl, al
mov byte [esp + 0x1e], 0
xor dl, al
mov byte [esp + 0x16], cl
xor ch, al
mov byte [esp + 0x17], dl
xor dh, al
mov byte [esp + 0x1a], ch
mov ah, 0x64
mov byte [esp + 0x1b], dh
mov bh, 0x20
mov dword [esp + 0x74], 0
xor bl, al
mov dword [esp + 0x78], 0
xor ah, al
mov byte [esp + 0x18], bl
xor bh, al
mov byte [esp + 0x19], ah
mov al, byte [esp + 0x13]
lea ecx, [esp + 0x15]
xor al, byte [esp + 0x14]
lea edx, [ecx + 1]
xorps xmm0, xmm0
mov byte [esp + 0x1c], bh
mov byte [esp + 0x1d], al
movups xmmword [esp + 0x64], xmm0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c9a50
sub ecx, edx
lea eax, [esp + 0x15]
push ecx
push eax
lea ecx, [esp + 0x6c]
call fcn.004b8860
mov dh, 0x45
mov byte [esp + 0x3b], 0
mov cl, 3
mov byte [esp + 0x34], dh
xor cl, dh
mov byte [esp + 0x3b], 0
mov ch, 7
mov byte [esp + 0x36], cl
xor ch, dh
mov dword [esp + 0x5c], 0
mov byte [esp + 0x3a], ch
mov al, 8
xor al, dh
mov dword [esp + 0x60], 0
mov dl, 0x1f
mov byte [esp + 0x35], al
mov ah, 0xf
xor dl, dh
xor ah, dh
mov byte [esp + 0x37], dl
mov bl, 0x21
mov byte [esp + 0x39], ah
xor bl, dh
lea eax, [esp + 0x7c]
mov ecx, 1
mov byte [esp + 0x38], bl
cmp dword [esp + 0x8c], ecx
xorps xmm0, xmm0
movups xmmword [esp + 0x4c], xmm0
cmovb ecx, dword [esp + 0x8c]
cmp dword [esp + 0x90], 0x10
push ecx
cmovae eax, dword [esp + 0x80]
lea ecx, [esp + 0x50]
push eax
call fcn.004b8860
lea eax, [esp + 0x35]
push eax
lea ecx, [esp + 0x50]
call fcn.004b8bf0
mov ecx, dword [esp + 0x60]
mov bl, al
cmp ecx, 0x10
jb 0x4c9b39
mov edx, dword [esp + 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4c9b2f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c9ca7
push ecx
push edx
call fcn.004cc05d
add esp, 8
test bl, bl
je 0x4c9ba0
mov al, 0x38
mov byte [esp + 0x20], 0xe
mov bl, al
mov byte [esp + 0x29], 0
xor al, byte [esp + 0x20]
mov ah, 0x46
mov byte [esp + 0x21], al
mov cl, 0x7f
mov al, byte [esp + 0x20]
mov dl, 0x54
xor ah, al
mov byte [esp + 0x29], 0
mov ch, 0x7a
mov byte [esp + 0x25], ah
mov dh, 0x60
xor cl, al
xor ch, al
mov byte [esp + 0x22], cl
mov bh, 0x39
mov byte [esp + 0x26], ch
xor dl, al
lea ecx, [esp + 0x64]
xor bl, al
mov byte [esp + 0x23], dl
xor dh, al
mov byte [esp + 0x24], bl
xor bh, al
mov byte [esp + 0x27], dh
lea eax, [esp + 0x21]
mov byte [esp + 0x28], bh
push eax
call fcn.004b7600
mov ecx, dword [esp + 0x78]
cmp ecx, 0x10
jb 0x4c9bd6
mov edx, dword [esp + 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4c9bcc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c9ca7
push ecx
push edx
call fcn.004cc05d
add esp, 8
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0xf
mov byte [esp + 0x64], 0
cmp ecx, 0x10
jb 0x4c9c24
mov edx, dword [esp + 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4c9c1a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c9ca7
push ecx
push edx
call fcn.004cc05d
add esp, 8
mov ebx, dword [esp + 0x3c]
inc ebx
mov dword [esp + 0x3c], ebx
jmp 0x4c9c6c
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cbw
movzx edi, ax
cmp ecx, edx
jae 0x4c9c5a
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 8
jb 0x4c9c4d
mov eax, dword [esi]
xor edx, edx
mov word [eax + ecx*2], di
mov word [eax + ecx*2 + 2], dx
jmp 0x4c9c6c
push edi
mov byte [esp + 0x4c], 0
push dword [esp + 0x4c]
push ecx
mov ecx, esi
call fcn.004cbb20
inc ebp
cmp ebp, dword [esp + 0x40]
jne 0x4c9925
mov edi, dword [esp + 0xb4]
mov edx, dword [esp + 0xa0]
cmp edi, 0x10
jb 0x4c9ce5
lea ecx, [edi + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x4c9cdb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4c9cdb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, dword [esp + 0xb4]
cmp ecx, 0x10
jb 0x4c9ce5
mov edx, dword [esp + 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4c9cdb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c9ca7
push ecx
push edx
call fcn.004cc05d
add esp, 8
mov ecx, dword [esp + 0x94]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004cbdc9
add esp, 0x8c
ret