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

Disassembly:
push 0xffffffffffffffff
push 0x4628c8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x47f344]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47f344]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x9c]
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x2c], ecx
call fcn.004c2670
push eax
mov dword [esp + 0x84], 0
call fcn.004cc230
mov ebx, eax
mov dword [esp + 0x84], 0xffffffff
mov eax, dword [esp + 0x3c]
add esp, 4
test eax, eax
mov dword [esp + 0x24], ebx
je 0x4ca875
push 0
lea ecx, [esp + 0x24]
mov edi, eax
call 0x51acd5
mov eax, dword [edi + 4]
test eax, eax
jbe 0x4ca853
cmp eax, 0xffffffff
jae 0x4ca853
add eax, 0xffffffff
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x20]
and esi, edi
call 0x51acf6
test esi, esi
je 0x4ca875
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
lea esi, [esp + 0x58]
mov ecx, ebx
call fcn.004cba80
mov esi, 1
mov dword [esp + 0x80], esi
mov edx, dword [ebx]
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
xor ecx, ecx
mov byte [esp + 0x20], al
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ecx
mov byte [esp + 0x40], cl
mov byte [esp + 0x80], 2
mov al, byte [ebp]
cmp al, 0x2b
je 0x4ca8c2
cmp al, 0x2d
mov dword [esp + 0x1c], ecx
jne 0x4ca8c6
mov dword [esp + 0x1c], esi
call 0x4ff9c6
mov ecx, dword [eax]
mov edi, dword [esp + 0xac]
mov dl, byte [ecx]
push edi
push 0x65
push ebp
mov byte [esp + 0x20], dl
mov byte [esp + 0x21], 0x65
mov byte [esp + 0x22], 0
call 0x4ffa30
add esp, 0xc
mov esi, eax
movsx eax, byte [esp + 0x14]
push edi
push eax
push ebp
call 0x4ffa30
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4ca90f
mov dword [esp + 0xa8], eax
mov ecx, dword [esp + 0x70]
cmp ecx, 0x10
mov edx, dword [esp + 0x5c]
mov eax, edx
jae 0x4ca922
lea eax, [esp + 0x5c]
cmp byte [eax], 0x7f
je 0x4caa7c
cmp ecx, 0x10
mov eax, edx
jae 0x4ca936
lea eax, [esp + 0x5c]
cmp byte [eax], 0
jle 0x4caa7c
push edi
push ebp
lea eax, [esp + 0x44]
call fcn.004c9b20
test esi, esi
jne 0x4ca963
mov ecx, dword [esp + 0xa8]
push 0x30
push ecx
lea ecx, [esp + 0x44]
call fcn.004c8950
jmp 0x4ca998
test ebx, ebx
jne 0x4ca981
mov edx, dword [esp + 0xa0]
push 0x30
push edx
lea ecx, [esp + 0x44]
call fcn.004c8950
mov dword [esp + 0xa0], ebx
mov eax, dword [esp + 0xa8]
push 0x30
mov edi, esi
push eax
sub edi, ebp
lea esi, [esp + 0x44]
call fcn.004cb500
test ebx, ebx
push 0x30
jne 0x4ca9b1
mov ecx, dword [esp + 0xa4]
push ecx
lea ecx, [esp + 0x44]
call fcn.004c8950
jmp 0x4ca9e3
mov edx, dword [esp + 0xa8]
sub ebx, ebp
push edx
lea edi, [ebx + 1]
lea esi, [esp + 0x44]
call fcn.004cb500
mov eax, dword [esp + 0xa0]
push 0x30
push eax
mov edi, ebx
call fcn.004cb500
mov dword [esp + 0xa4], 0
mov ebp, dword [esp + 0x5c]
mov ebx, 0x10
cmp dword [esp + 0x70], ebx
mov dword [esp + 0xa0], 0
jae 0x4caa01
lea ebp, [esp + 0x5c]
cmp dword [esp + 0x54], ebx
mov eax, dword [esp + 0x40]
jae 0x4caa0f
lea eax, [esp + 0x40]
lea ecx, [esp + 0x14]
push ecx
push eax
call 0x4ff980
mov edi, eax
mov al, byte [ebp]
add esp, 8
cmp al, 0x7f
je 0x4caa56
test al, al
jle 0x4caa56
mov edx, edi
sub edx, dword [esp + 0x1c]
movsx eax, al
cmp eax, edx
jae 0x4caa56
push 0
sub edi, eax
push 1
lea esi, [esp + 0x44]
call fcn.004cb500
cmp byte [ebp + 1], 0
jle 0x4caa4f
add ebp, 1
mov al, byte [ebp]
cmp al, 0x7f
jne 0x4caa26
cmp dword [esp + 0x54], ebx
mov ebp, dword [esp + 0x40]
jae 0x4caa64
lea ebp, [esp + 0x40]
mov eax, dword [esp + 0x50]
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], eax
mov edi, eax
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
lea eax, [ecx + edx]
add eax, dword [esp + 0xa8]
mov edx, dword [esp + 0x28]
mov ecx, dword [edx + 0x18]
add eax, edi
test ecx, ecx
jle 0x4caaad
cmp ecx, eax
jbe 0x4caaad
sub ecx, eax
mov dword [esp + 0x18], ecx
jmp 0x4caab5
mov dword [esp + 0x18], 0
mov eax, dword [edx + 0x10]
and eax, 0x1c0
cmp eax, 0x40
je 0x4cab96
cmp eax, 0x100
mov edx, dword [esp + 0x90]
je 0x4cab1d
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x8c]
push eax
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0xa4]
mov dword [eax + 4], edx
lea edx, [esp + 0x3c]
mov dword [eax + 8], ecx
push edx
mov eax, dword [esp + 0x2c]
call fcn.004cb220
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebx, dword [eax + 8]
add esp, 0x14
mov dword [esp + 0x18], 0
jmp 0x4cabab
cmp dword [esp + 0x1c], 0
jbe 0x4cab69
mov ecx, dword [esp + 0x8c]
push ebp
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0xa4]
mov dword [eax + 4], edx
lea edx, [esp + 0x3c]
mov dword [eax + 8], ecx
push edx
mov eax, 1
call fcn.004cb910
mov esi, dword [eax]
mov edx, dword [eax + 4]
mov ecx, dword [eax + 8]
add esp, 0x14
add ebp, 1
sub edi, 1
mov dword [esp + 0xac], edi
jmp 0x4cab77
mov ecx, dword [esp + 0x94]
mov esi, dword [esp + 0x8c]
mov eax, dword [esp + 0x98]
push eax
sub esp, 0xc
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
lea ecx, [esp + 0x3c]
push ecx
jmp 0x4caafc
mov ebx, dword [esp + 0x94]
mov edi, dword [esp + 0x90]
mov esi, dword [esp + 0x8c]
mov edx, dword [esp + 0xac]
movsx eax, byte [esp + 0x14]
push edx
push eax
push ebp
call 0x4ffa30
add esp, 0xc
test eax, eax
je 0x4cac9e
mov ecx, dword [esp + 0x20]
sub eax, ebp
add eax, 1
mov dword [esp + 0x1c], eax
push ecx
add eax, 0xffffffff
push eax
sub esp, 0xc
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edi
lea edx, [esp + 0x40]
mov dword [eax + 8], ebx
push edx
mov eax, ebp
call fcn.004cb990
mov edx, dword [eax]
add esp, 0x18
push 0x30
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xb0]
lea ecx, [esp + 0x3c]
push ecx
call fcn.004cb220
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebx, dword [eax + 8]
mov eax, dword [edx + 4]
add esp, 0x14
call eax
mov byte [esp + 0x24], al
mov ecx, dword [esp + 0x24]
push ecx
sub esp, 0xc
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edi
lea edx, [esp + 0x3c]
mov dword [eax + 8], ebx
push edx
mov eax, 1
call fcn.004cb220
mov edx, dword [eax]
add esp, 0x14
push 0x30
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xb4]
lea ecx, [esp + 0x3c]
push ecx
call fcn.004cb220
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebx, dword [eax + 8]
mov eax, dword [esp + 0x30]
add esp, 0x14
add ebp, eax
sub dword [esp + 0xac], eax
mov edx, dword [esp + 0xac]
push edx
push 0x65
push ebp
call 0x4ffa30
add esp, 0xc
test eax, eax
je 0x4cad6e
mov ecx, dword [esp + 0x20]
sub eax, ebp
add eax, 1
mov dword [esp + 0x24], eax
push ecx
add eax, 0xffffffff
push eax
sub esp, 0xc
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edi
lea edx, [esp + 0x40]
mov dword [eax + 8], ebx
push edx
mov eax, ebp
call fcn.004cb990
mov edx, dword [eax]
add esp, 0x18
push 0x30
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xb8]
lea ecx, [esp + 0x3c]
push ecx
call fcn.004cb220
mov edx, dword [esp + 0x3c]
add esp, 0x14
test byte [edx + 0x10], 4
mov dword [esp + 0xa8], 0
mov ecx, 0x46a3d4
jne 0x4cad31
mov ecx, 0x46a3d8
mov edx, dword [eax]
push ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
lea ecx, [esp + 0x3c]
push ecx
mov eax, 1
call fcn.004cb910
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebx, dword [eax + 8]
mov eax, dword [esp + 0x38]
add esp, 0x14
add ebp, eax
sub dword [esp + 0xac], eax
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0xac]
push edx
push eax
sub esp, 0xc
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edi
lea ecx, [esp + 0x40]
mov dword [eax + 8], ebx
push ecx
mov eax, ebp
call fcn.004cb990
mov edx, dword [eax]
add esp, 0x18
push 0x30
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xb8]
lea ecx, [esp + 0x3c]
push ecx
call fcn.004cb220
mov esi, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x3c]
xor ebx, ebx
mov dword [ecx + 0x18], ebx
mov ecx, dword [esp + 0xac]
add esp, 0x14
push ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov dword [ecx + 4], esi
mov esi, dword [esp + 0x98]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x28]
push esi
call fcn.004cb220
mov edi, 0x10
add esp, 0x14
cmp dword [esp + 0x54], edi
jb 0x4cae14
mov edx, dword [esp + 0x40]
push edx
call 0x4ff245
add esp, 4
cmp dword [esp + 0x70], edi
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], 0
jb 0x4cae38
mov eax, dword [esp + 0x5c]
push eax
call 0x4ff245
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call 0x4ff236
add esp, 0x70
ret