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

Disassembly:
sub esp, 0x80
and dword [esp + 0xc], 0
and dword [esp + 0x10], 0
cmp dword [esp + 0x94], 0x5d4
push ebx
push ebp
push esi
push edi
jb 0x4cacd1
push dword [esp + 0xa8]
mov ebx, dword [esp + 0xa4]
push 0x36c
lea eax, [ebx + 0x68]
push eax
push dword [esp + 0xa8]
lea eax, [esp + 0x2c]
push dword [esp + 0xa8]
lea edi, [ebx + 0x4d4]
push eax
lea eax, [esp + 0x38]
push eax
push ebx
push pe_nt_image_headers32
push edi
call fcn.004c74e2
add esp, 0x28
mov dword [esp + 0x38], eax
cmp eax, 0xffffff88
ja 0x4cacd4
mov ebp, dword [esp + 0x94]
push ebp
call fcn.004c3e6e
push 0xb
movzx esi, al
mov dword [esp + 0x20], eax
inc esi
pop eax
cmp esi, eax
cmovb eax, esi
push eax
push dword [esp + 0x24]
push dword [esp + 0x2c]
push ebx
push edi
call fcn.004caf29
add esp, 0x18
mov dword [esp + 0x1c], eax
cmp eax, esi
ja 0x4cacd1
mov byte [esp + 0x1a], al
lea eax, [esp + 0x18]
push 4
push eax
push ebp
mov byte [esp + 0x25], 0
call fcn.004e4d00
mov esi, dword [esp + 0x2c]
add esp, 0xc
mov eax, dword [esp + 0x1c]
xor edx, edx
xor ecx, ecx
inc eax
lea ebp, [esi - 3]
test eax, eax
jle 0x4ca8c0
mov edi, eax
mov eax, edx
add edx, dword [ebx + ecx*4]
mov dword [ebx + ecx*4 + 0x34], eax
inc ecx
cmp ecx, edi
jl 0x4ca8ac
lea edi, [ebx + 0x4d4]
xor edx, edx
mov dword [esp + 0x24], edx
test ebp, ebp
jle 0x4ca90d
xor eax, eax
lea esi, [edi + edx]
mov dword [esp + 0x34], eax
movzx edx, byte [esi + eax]
mov cl, al
add cl, byte [esp + 0x24]
mov eax, dword [ebx + edx*4 + 0x34]
mov byte [ebx + eax + 0x3d4], cl
mov eax, dword [esp + 0x34]
inc dword [ebx + edx*4 + 0x34]
inc eax
mov dword [esp + 0x34], eax
cmp eax, 4
jl 0x4ca8d3
mov edx, dword [esp + 0x24]
add edx, 4
mov dword [esp + 0x24], edx
cmp edx, ebp
jl 0x4ca8ca
mov esi, dword [esp + 0x20]
cmp edx, esi
jge 0x4ca92b
movzx ecx, byte [edi + edx]
mov eax, dword [ebx + ecx*4 + 0x34]
mov byte [eax + ebx + 0x3d4], dl
inc dword [ebx + ecx*4 + 0x34]
inc edx
cmp edx, dword [esp + 0x20]
jl 0x4ca911
and dword [esp + 0x18], 0
xor ecx, ecx
mov eax, dword [esp + 0x1c]
inc ecx
mov edi, dword [ebx]
inc eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x34], ecx
cmp eax, ecx
jbe 0x4caccb
mov ebp, dword [ebx + ecx*4]
xor esi, esi
inc esi
mov dword [esp + 0x50], ebp
shl esi, cl
mov cl, byte [esp + 0x1c]
sub cl, byte [esp + 0x34]
sar esi, 1
inc cl
mov eax, esi
mov dword [esp + 0x30], esi
sub eax, 1
je 0x4cac5f
sub eax, 1
je 0x4cac15
dec eax
sub eax, 1
je 0x4cab7f
sub eax, 4
je 0x4caabb
and dword [esp + 0x2c], 0
test ebp, ebp
jle 0x4caca8
movzx eax, cl
mov ecx, dword [esp + 0x18]
cdq
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x40], edx
lea eax, [eax + ecx*2]
add eax, 0x14
mov dword [esp + 0x28], eax
lea eax, [edi + 0x3d4]
mov edi, dword [esp + 0x2c]
add eax, ebx
mov dword [esp + 0x54], eax
movzx eax, byte [eax + edi]
mov ecx, 0x10001
cdq
shld edx, eax, 8
push ecx
shl eax, 8
add eax, dword [esp + 0x40]
push ecx
adc edx, dword [esp + 0x48]
push edx
push eax
call fcn.004e4260
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
test esi, esi
jle 0x4caa9a
mov ebp, dword [esp + 0x28]
lea eax, [esi - 1]
mov esi, dword [esp + 0x48]
mov edi, edx
shr eax, 4
inc eax
mov dword [esp + 0x44], eax
mov ebx, eax
push 8
lea eax, [esp + 0x5c]
mov dword [esp + 0x5c], esi
push eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x64], edi
push eax
call fcn.004e4d00
push 8
lea eax, [esp + 0x70]
mov dword [esp + 0x70], esi
push eax
lea eax, [ebp - 8]
mov dword [esp + 0x78], edi
push eax
call fcn.004e4d00
push 8
lea eax, [esp + 0x84]
mov dword [esp + 0x84], esi
push eax
push ebp
mov dword [esp + 0x90], edi
call fcn.004e4d00
push 8
lea eax, [esp + 0x98]
mov dword [esp + 0x98], esi
push eax
lea eax, [ebp + 8]
mov dword [esp + 0xa0], edi
push eax
call fcn.004e4d00
add esp, 0x30
add ebp, 0x20
sub ebx, 1
jne 0x4caa14
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
lea eax, [esi + esi]
add dword [esp + 0x28], eax
inc edi
mov eax, dword [esp + 0x54]
mov dword [esp + 0x2c], edi
cmp edi, ebp
jl 0x4ca9cb
mov edi, dword [esp + 0x24]
jmp 0x4caca1
and dword [esp + 0x54], 0
test ebp, ebp
jle 0x4caca8
movzx eax, cl
mov ecx, dword [esp + 0x18]
cdq
mov esi, eax
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x94]
mov dword [esp + 0x4c], esi
lea eax, [eax + ecx*2]
add eax, 4
mov dword [esp + 0x2c], eax
lea eax, [ebx + 0x3d4]
mov ebx, dword [esp + 0x54]
add eax, edi
mov dword [esp + 0x48], eax
movzx eax, byte [eax + ebx]
mov ecx, 0x10001
cdq
shld edx, eax, 8
push ecx
shl eax, 8
add eax, esi
push ecx
adc edx, dword [esp + 0x58]
push edx
push eax
call fcn.004e4260
mov esi, eax
mov edi, edx
push 8
lea eax, [esp + 0x7c]
mov dword [esp + 0x7c], esi
push eax
push dword [esp + 0x34]
mov dword [esp + 0x88], edi
call fcn.004e4d00
mov dword [esp + 0x8c], esi
lea eax, [esp + 0x8c]
mov esi, dword [esp + 0x38]
push 8
push eax
mov dword [esp + 0x98], edi
lea eax, [esi + 8]
push eax
call fcn.004e4d00
mov eax, dword [esp + 0x60]
add esi, 0x10
add esp, 0x18
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x4c]
inc ebx
cmp ebx, ebp
jl 0x4caafb
mov esi, dword [esp + 0x30]
jmp 0x4caab2
and dword [esp + 0x54], 0
test ebp, ebp
jle 0x4caca8
movzx eax, cl
mov ecx, dword [esp + 0x18]
cdq
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x94]
mov esi, dword [esp + 0x4c]
add eax, 4
mov dword [esp + 0x48], edx
lea ecx, [eax + ecx*2]
lea eax, [ebx + 0x3d4]
mov dword [esp + 0x50], ecx
mov ebx, dword [esp + 0x54]
add eax, edi
mov dword [esp + 0x44], eax
mov edi, ecx
movzx eax, byte [eax + ebx]
mov ecx, 0x10001
cdq
shld edx, eax, 8
push ecx
shl eax, 8
add eax, esi
push ecx
adc edx, dword [esp + 0x50]
push edx
push eax
call fcn.004e4260
mov dword [esp + 0x88], eax
lea eax, [esp + 0x88]
push 8
push eax
push edi
mov dword [esp + 0x98], edx
call fcn.004e4d00
mov eax, dword [esp + 0x50]
add esp, 0xc
add edi, 8
inc ebx
cmp ebx, ebp
jl 0x4cabc3
jmp 0x4cab76
xor edx, edx
test ebp, ebp
jle 0x4caca8
mov eax, dword [esp + 0x94]
mov byte [esp + 0x10], cl
add eax, 4
mov ecx, dword [esp + 0x18]
lea ecx, [eax + ecx*2]
lea eax, [ebx + 0x3d4]
add eax, edi
mov dword [esp + 0x54], eax
mov ebx, eax
mov al, byte [ebx + edx]
inc edx
mov byte [esp + 0x11], al
mov ax, word [esp + 0x10]
mov word [ecx], ax
lea ecx, [ecx + 4]
mov word [ecx - 2], ax
cmp edx, ebp
jl 0x4cac42
jmp 0x4caca1
xor edx, edx
test ebp, ebp
jle 0x4caca8
lea eax, [ebx + 0x3d4]
mov byte [esp + 0x14], cl
mov ecx, dword [esp + 0x18]
add eax, edi
mov dword [esp + 0x54], eax
add ecx, 2
mov eax, dword [esp + 0x94]
mov ebx, dword [esp + 0x54]
lea ecx, [eax + ecx*2]
mov al, byte [ebx + edx]
inc edx
mov byte [esp + 0x15], al
mov ax, word [esp + 0x14]
mov word [ecx], ax
lea ecx, [ecx + 2]
cmp edx, ebp
jl 0x4cac8a
mov ebx, dword [esp + 0xa0]
mov ecx, dword [esp + 0x34]
add edi, ebp
mov eax, dword [esp + 0x1c]
imul esi, ebp
mov dword [esp + 0x24], edi
add dword [esp + 0x18], esi
inc ecx
inc eax
mov dword [esp + 0x34], ecx
cmp ecx, eax
jb 0x4ca94a
mov eax, dword [esp + 0x38]
jmp 0x4cacd4
push 0xffffffffffffffd4
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret