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

Disassembly:
push 0xffffffffffffffff
push 0x5477b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
mov eax, dword [ebp + 0xc8]
mov dword [esp + 0x14], ebp
cmp eax, ebx
jne 0x4ca874
mov dword [esp + 0x10], ebx
jmp 0x4ca87e
mov eax, dword [ebp + 0xc0]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x44]
cmp edx, ebx
jle 0x4caaa3
mov eax, dword [ebp + 0x64]
shr eax, 2
cmp eax, ebx
jle 0x4caaa3
mov ecx, dword [ebp + 0x64]
lea edi, [ebp + 0x54]
cmp ecx, ebx
mov dword [esp + 0x44], edi
jne 0x4ca8aa
xor ecx, ecx
jmp 0x4ca8ad
mov ecx, dword [edi + 8]
push edx
push eax
push ecx
call fcn.00408980
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x4ca8c7
mov esi, dword [ebp + 0x64]
shr esi, 2
jmp 0x4ca8cb
cmp esi, ebx
jle 0x4ca8cc
dec esi
cmp dword [edi + 0x10], ebx
je 0x4ca8d4
mov ebx, dword [edi + 8]
test esi, esi
jle 0x4ca8fc
lea edi, [ebx + esi*4]
mov ecx, dword [edi]
mov eax, dword [esp + 0x10]
add ecx, eax
push ecx
mov ecx, ebp
call fcn.004cced0
cmp eax, 1
je 0x4ca8f8
dec esi
sub edi, 4
test esi, esi
jg 0x4ca8db
mov edi, dword [esp + 0x44]
lea eax, [esi*4]
mov ecx, edi
push eax
mov edx, dword [eax + ebx]
mov dword [esp + 0x48], edx
call fcn.00473200
lea ecx, [esp + 0x20]
call fcn.00473110
mov dword [esp + 0x3c], 0
mov ebp, 1
cmp ebp, 1
jne 0x4ca936
mov eax, dword [esp + 0x14]
lea esi, [eax + 0x7c]
jmp 0x4ca951
cmp ebp, 2
jne 0x4ca947
mov ecx, dword [esp + 0x14]
lea esi, [ecx + 0x90]
jmp 0x4ca951
mov edx, dword [esp + 0x14]
lea esi, [edx + 0xa4]
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0x20]
push eax
call fcn.00473580
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4ca969
xor edi, edi
jmp 0x4ca96c
mov edi, dword [esi + 8]
shr eax, 2
test eax, eax
jle 0x4ca98f
mov ebx, eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
jge 0x4ca989
push eax
lea ecx, [esp + 0x24]
call fcn.004733d0
add edi, 4
dec ebx
jne 0x4ca975
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x28]
mov eax, ecx
push ecx
neg eax
sbb eax, eax
mov ecx, esi
and eax, ebx
mov dword [esi + 0x10], 0
push eax
call fcn.004739d0
inc ebp
cmp ebp, 3
jle 0x4ca928
mov esi, dword [esi + 0x10]
lea ecx, [esp + 0x20]
push esi
call fcn.00473580
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x78]
lea edi, [eax + 0x68]
test ecx, ecx
mov dword [esp + 0x1c], edi
jne 0x4ca9dc
xor esi, esi
jmp 0x4ca9df
mov esi, dword [edi + 8]
mov ecx, dword [eax + 0x78]
mov eax, 0x38e38e39
mul ecx
shr edx, 1
test edx, edx
jle 0x4caa3a
mov dword [esp + 0x18], edx
mov edi, dword [esi + 1]
mov ebp, dword [esp + 0x44]
mov ebx, dword [esi + 5]
cmp edi, ebp
jge 0x4caa28
mov al, byte [esi]
lea ecx, [esp + 0x20]
push eax
call fcn.00473450
push edi
lea ecx, [esp + 0x24]
call fcn.004733d0
cmp ebx, ebp
jl 0x4caa1e
or ebx, 0xffffffff
push ebx
lea ecx, [esp + 0x24]
call fcn.004733d0
mov eax, dword [esp + 0x18]
add esi, 9
dec eax
mov dword [esp + 0x18], eax
jne 0x4ca9f3
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
test ecx, ecx
jle 0x4caa64
mov eax, 0x38e38e39
push 0x4a8300
mul ecx
mov ecx, dword [esp + 0x2c]
push 9
shr edx, 1
push edx
push ecx
call fcn.00503cee
mov ecx, dword [esp + 0x40]
add esp, 0x10
mov esi, dword [esp + 0x28]
mov eax, ecx
neg eax
sbb eax, eax
push ecx
and eax, esi
mov ecx, edi
push eax
mov dword [edi + 0x10], 0
call fcn.004739d0
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x20], 0x54d7d0
call fcn.00473310
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
jmp 0x4caad7
lea ecx, [ebp + 0x54]
call fcn.00473310
lea esi, [ebp + 0x68]
mov ecx, esi
call fcn.00473310
lea ecx, [ebp + 0x7c]
call fcn.00473310
lea ecx, [ebp + 0x90]
call fcn.00473310
lea ecx, [ebp + 0xa4]
call fcn.00473310
mov dword [esp + 0x44], ebx
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
mov ebx, dword [ebp + 0xc8]
mov ecx, edx
lea edi, [edx + eax]
add ebx, ecx
cmp edi, ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
jae 0x4cabbd
mov al, byte [edi]
mov byte [esp + 0x44], al
mov ecx, dword [esp + 0x44]
and ecx, 0xff
add ecx, 0xffffff95
cmp ecx, 9
ja case.0x4cab20.109
xor edx, edx
mov dl, byte [ecx + 0x4cac34]
jmp dword [edx*4 + 0x4cac28]
cmp al, 0x70
jne 0x4cab32
mov eax, 3
jmp 0x4cab47
cmp al, 0x6c
jne 0x4cab3d
mov eax, 2
jmp 0x4cab47
sub al, 0x6b
neg al
sbb eax, eax
and eax, 3
inc eax
push eax
mov ecx, esi
call fcn.00473450
mov edx, dword [esp + 0x10]
mov eax, edi
sub eax, edx
mov ecx, esi
push eax
call fcn.004733d0
push 0xffffffffffffffff
mov ecx, esi
call fcn.004733d0
jmp case.0x4cab20.109
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4cab75
xor ecx, ecx
jmp 0x4cab78
mov ecx, dword [esi + 8]
mov eax, 0x38e38e39
mul dword [ebp + 0x78]
shr edx, 1
dec edx
js case.0x4cab20.109
lea ecx, [ecx + edx*8]
lea eax, [edx + ecx + 5]
cmp dword [eax], 0xffffffff
je 0x4cab9b
dec edx
sub eax, 9
test edx, edx
jge 0x4cab8c
jmp case.0x4cab20.109
mov ecx, dword [esp + 0x10]
mov edx, edi
sub edx, ecx
mov dword [eax], edx
push 1
push edi
mov ecx, ebp
call fcn.004ca560
add edi, eax
cmp edi, ebx
jb 0x4caafc
mov edi, dword [esp + 0x1c]
mov esi, edi
cmp esi, ebx
jae 0x4cac12
mov bl, byte [esi]
inc esi
mov byte [esp + 0x44], bl
mov eax, dword [esp + 0x44]
push eax
call fcn.004cc730
add esp, 4
cmp eax, 1
jne 0x4cac0c
mov ecx, esi
mov edi, esi
call fcn.004ca150
add esi, eax
cmp bl, 0x6a
jne 0x4cac0c
mov ecx, edi
call fcn.004ca320
test eax, eax
je 0x4cac0c
mov ebx, dword [esp + 0x10]
mov ecx, dword [edi]
mov eax, esi
sub eax, ebx
add ecx, eax
push ecx
push eax
mov ecx, ebp
call fcn.004cac40
cmp esi, dword [esp + 0x18]
jb 0x4cabc3
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4