Function at 0x4ca770
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x21c
mov eax, dword [esp + 0x220]
push ebx
mov ebx, dword [eax + 0x3c]
push ebp
push esi
add ebx, eax
push edi
lea eax, [esp + 0x240]
push eax
push 0x10083bc8
lea ecx, [esp + 0x23c]
push ecx
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x34], ebx
lea ebp, [ebx + 0x80]
call fcn.004c90f0
add esp, 0xc
push eax
lea eax, [esp + 0x68]
push eax
call fcn.004c9050
mov eax, dword [esp + 0x78]
add esp, 0xc
test eax, eax
je 0x4ca7d1
push eax
call fcn.004c17d0
add esp, 4
lea ecx, [esp + 0x1ec]
push 0x40
push ecx
call fcn.004c15e0
lea edx, [esp + 0xfc]
push 0xf8
push edx
mov word [esp + 0x1fc], 0x5a4d
mov dword [esp + 0x238], 0x40
call fcn.004c15e0
mov eax, 0x1000
mov edi, 0x200
mov dword [esp + 0x104], 0x4550
mov word [esp + 0x11a], 0x210e
mov word [esp + 0x108], 0x14c
mov dword [esp + 0x134], 0x2000
mov word [esp + 0x10a], 3
mov word [esp + 0x118], 0xe0
mov word [esp + 0x11c], 0x10b
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], eax
mov dword [esp + 0x140], edi
mov dword [esp + 0x138], 0x10000000
mov dword [esp + 0x13c], eax
mov dword [esp + 0x120], edi
mov dword [esp + 0x158], edi
mov dword [esp + 0x170], eax
mov dword [esp + 0x16c], eax
mov dword [esp + 0x168], eax
mov dword [esp + 0x164], eax
mov ax, word [ebx + 0x5c]
push edi
mov word [esp + 0x164], ax
mov dword [esp + 0x17c], 0x10
call fcn.004c1680
mov esi, eax
mov byte [esi], pe_nt_image_headers32
mov dword [esi + 1], 1
lea eax, [esi + 1]
add eax, 4
mov byte [eax], 0xc2
add eax, 1
mov word [eax], 0xc
sub eax, esi
add eax, 2
mov dword [esp + 0x6c], eax
xor eax, eax
add esp, 0x14
cmp ebp, eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
je 0x4ca913
mov ecx, dword [ebp + 4]
mov dword [esp + 0x18], ecx
jmp 0x4ca91b
mov dword [esp + 0x18], 0
xor eax, eax
xor edi, edi
cmp dword [esp + 0x18], eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], eax
jbe 0x4ca94a
mov edx, dword [esp + 0x18]
push edx
call fcn.004c1680
mov edi, eax
mov eax, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], edi
xor eax, eax
cmp ebp, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
jne 0x4ca9c2
cmp edi, eax
je 0x4ca973
push edi
call fcn.004c17d0
add esp, 4
push esi
call fcn.004c17d0
mov eax, dword [esp + 0x64]
add esp, 4
test eax, eax
je 0x4ca98d
push eax
call fcn.004c17d0
add esp, 4
mov eax, dword [esp + 0x234]
test eax, eax
je 0x4ca9a1
push eax
call fcn.004c17d0
add esp, 4
mov eax, dword [esp + 0x240]
test eax, eax
je 0x4ca9b5
push eax
call fcn.004c17d0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x21c
ret
mov eax, dword [ebp]
push eax
push ebx
call fcn.004c8ce0
add esp, 8
test eax, eax
je 0x4ca9ea
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp]
sub edx, ecx
cmp edx, dword [eax + 0x10]
jae 0x4ca9ea
mov eax, dword [eax + 0x14]
sub eax, ecx
add eax, dword [ebp]
jne 0x4caa46
test edi, edi
je 0x4ca9f7
push edi
call fcn.004c17d0
add esp, 4
push esi
call fcn.004c17d0
mov eax, dword [esp + 0x64]
add esp, 4
test eax, eax
je 0x4caa11
push eax
call fcn.004c17d0
add esp, 4
mov eax, dword [esp + 0x234]
test eax, eax
je 0x4caa25
push eax
call fcn.004c17d0
add esp, 4
mov eax, dword [esp + 0x240]
test eax, eax
je 0x4ca9b5
push eax
call fcn.004c17d0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x21c
ret
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x230]
push ecx
add eax, edx
push eax
push edi
call fcn.004c1600
mov eax, 0xfffffff8
add esp, 0xc
sub eax, edi
mov dword [esp + 0x18], 0
lea ebp, [edi + 8]
mov dword [esp + 0x3c], eax
cmp dword [ebp - 8], 0
jne 0x4caa95
cmp dword [ebp + 8], 0
jne 0x4caa95
cmp dword [ebp], 0
jne 0x4caa95
cmp dword [ebp + 4], 0
jne 0x4caa95
cmp dword [ebp - 4], 0
je 0x4cad07
add eax, ebp
cmp eax, dword [ebx + 0x84]
jae 0x4cad07
mov esi, dword [ebp + 4]
push esi
push ebx
call fcn.004c8ce0
add esp, 8
test eax, eax
jne 0x4caab8
xor ebx, ebx
jmp 0x4caacf
mov ecx, dword [eax + 0xc]
mov edx, esi
sub edx, ecx
cmp edx, dword [eax + 0x10]
jb 0x4caac8
xor ebx, ebx
jmp 0x4caacf
mov ebx, dword [eax + 0x14]
sub ebx, ecx
add ebx, esi
test ebx, ebx
mov dword [esp + 0x20], ebx
je 0x4cac00
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.004c91c0
mov edi, dword [ebp - 8]
mov edx, dword [esp + 0x24]
push edi
push edx
call fcn.004c8ce0
add esp, 8
test eax, eax
jne 0x4cab07
xor esi, esi
jmp 0x4cab1e
mov ecx, dword [eax + 0xc]
mov edx, edi
sub edx, ecx
cmp edx, dword [eax + 0x10]
jb 0x4cab17
xor esi, esi
jmp 0x4cab1e
mov esi, dword [eax + 0x14]
sub esi, ecx
add esi, edi
mov ecx, dword [esp + 0x54]
add dword [esp + 0x38], 8
lea eax, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x28], esi
call fcn.004c91c0
mov edx, dword [esp + 0x230]
mov esi, dword [esi + edx]
test esi, esi
js 0x4cabb4
mov eax, dword [esp + 0x24]
push esi
push eax
call fcn.004c8ce0
add esp, 8
test eax, eax
jne 0x4cab5e
xor edi, edi
jmp 0x4cab75
mov ecx, dword [eax + 0xc]
mov edx, esi
sub edx, ecx
cmp edx, dword [eax + 0x10]
jb 0x4cab6e
xor edi, edi
jmp 0x4cab75
mov edi, dword [eax + 0x14]
sub edi, ecx
add edi, esi
test edi, edi
mov dword [esp + 0x20], edi
je 0x4caca2
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.004c91c0
mov edx, dword [esp + 0x230]
lea eax, [edi + edx + 2]
push eax
call dword [0x100780e0]
mov ecx, dword [esp + 0x40]
lea edx, [ecx + eax + 3]
mov dword [esp + 0x40], edx
jmp 0x4cabcf
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x28], 0
call fcn.004c91c0
mov edx, dword [esp + 0x230]
add ebx, edx
push ebx
call dword [0x100780e0]
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x24]
lea edx, [ecx + eax + 1]
mov eax, dword [esp + 0x3c]
add ebp, 0x14
add dword [esp + 0x18], 1
mov dword [esp + 0x44], edx
jmp 0x4caa73
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4cac22
jmp 0x4cac10
mov esi, dword [eax + 4]
push eax
call fcn.004a8630
add esp, 4
test esi, esi
mov eax, esi
jne 0x4cac10
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4cac42
lea ebx, [ebx]
mov esi, dword [eax + 4]
push eax
call fcn.004a8630
add esp, 4
test esi, esi
mov eax, esi
jne 0x4cac30
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4cac62
lea ebx, [ebx]
mov esi, dword [eax + 4]
push eax
call fcn.004a8630
add esp, 4
test esi, esi
mov eax, esi
jne 0x4cac50
lea ecx, [esp + 0x48]
call fcn.004aa300
lea ecx, [esp + 0x6c]
call fcn.004aa300
lea ecx, [esp + 0x60]
call fcn.004aa5e0
lea ecx, [esp + 0x234]
call fcn.004aa5e0
lea ecx, [esp + 0x240]
call fcn.004aa5e0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x21c
ret
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4cacc2
lea ebx, [ebx]
mov esi, dword [eax + 4]
push eax
call fcn.004a8630
add esp, 4
test esi, esi
mov eax, esi
jne 0x4cacb0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4cace2
lea ebx, [ebx]
mov esi, dword [eax + 4]
push eax
call fcn.004a8630
add esp, 4
test esi, esi
mov eax, esi
jne 0x4cacd0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4cac62
mov edi, edi
mov esi, dword [eax + 4]
push eax
call fcn.004a8630
add esp, 4
test esi, esi
mov eax, esi
jne 0x4cacf0
jmp 0x4cac62
mov eax, dword [esp + 0x18]
lea eax, [eax + eax*4 + 5]
add eax, eax
add eax, eax
lea ecx, [eax + 0x2000]
mov dword [esp + 0x1c], eax
mov eax, ecx
shr eax, 0xc
shl eax, 0xc
cmp eax, ecx
mov dword [esp + 0x18], eax
jae 0x4cad36
add eax, 0x1000
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x44]
mov eax, ecx
shr eax, 2
add eax, eax
add eax, eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jae 0x4cad52
add eax, 4
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x40]
mov eax, ecx
shr eax, 2
add eax, eax
add eax, eax
cmp eax, ecx
mov dword [esp + 0x3c], eax
jae 0x4cad6e
add eax, 4
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x48]
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x18]
mov ecx, 0xfffffffc
xor edi, edi
sub ecx, eax
lea esi, [eax + 4]
mov dword [esp + 0x20], ecx
lea ebx, [ebx]
cmp dword [esi - 4], 0
jne 0x4cadad
cmp dword [esi + 0xc], 0
jne 0x4cadad
cmp dword [esi + 4], 0
jne 0x4cadad
cmp dword [esi + 8], 0
jne 0x4cadad
cmp dword [esi], 0
je 0x4caded
lea eax, [esi + ecx]
cmp eax, dword [esp + 0x1c]
jae 0x4caded
mov ecx, dword [esp + 0x18]
add ecx, edi
add ecx, dword [esp + 0x38]
mov dword [esi - 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ecx
mov edx, dword [ebp + 8]
add edx, dword [esp + 0x230]
push edx
call dword [0x100780e0]
mov ebp, dword [ebp + 4]
mov ecx, dword [esp + 0x20]
add ebx, 8
lea edi, [edi + eax + 1]
add esi, 0x14
jmp 0x4cad90
lea eax, [esp + 0x7c]
push 0x28
push eax
call fcn.004c15e0
add esp, 8
push 0x10083bc0
lea ecx, [esp + 0x80]
push ecx
call dword [0x10078124]
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x58]
mov ebx, ebp
shr ebx, 9
mov eax, 0x200
shl ebx, 9
cmp ebx, ebp
mov dword [esp + 0x88], 0x1000
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x84], edx
mov dword [esp + 0xa0], 0xe0000060
jae 0x4cae55
add ebx, eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
lea esi, [eax + ecx]
add esi, dword [esp + 0x38]
mov edi, esi
shr edi, 9
shl edi, 9
cmp edi, esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x20], edi
jae 0x4cae82
add edi, 0x200
mov dword [esp + 0x20], edi
lea edx, [esp + 0xa4]
push 0x28
push edx
call fcn.004c15e0
add esp, 8
push 0x10083bb8
lea eax, [esp + 0xa8]
push eax
call dword [0x10078124]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x90]
lea eax, [esp + 0xcc]
add edx, ecx
push 0x28
push eax
mov dword [esp + 0xb8], 0x2000
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], edx
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xd0], 0x40000040
call fcn.004c15e0
add esp, 8
push 0x10083bb0
lea ecx, [esp + 0xd0]
push ecx
call dword [0x10078124]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0xb4]
mov edx, dword [esp + 0xb8]
push 0
push 0x80
push 2
push 0
mov dword [esp + 0xe8], ecx
add edx, eax
add ecx, esi
cmp dword [esp + 0x25c], 0
push 1
mov dword [esp + 0xf0], edi
mov dword [esp + 0xf4], edx
mov dword [esp + 0xe8], esi
mov dword [esp + 0x104], 0xc0000040
mov dword [esp + 0x18c], ebp
mov dword [esp + 0x188], 0x2000
mov dword [esp + 0x158], ecx
mov dword [esp + 0x128], eax
push 0x40000000
je 0x4caf8c
mov eax, dword [esp + 0x78]
push eax
call fcn.004ba1c0
jmp 0x4caf97
mov ecx, dword [esp + 0x78]
push ecx
call dword [0x100781c0]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4caff7
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4cafb8
mov esi, dword [eax + 4]
push eax
call fcn.004a8630
add esp, 4
test esi, esi
mov eax, esi
jne 0x4cafa6
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4cafd2
mov esi, dword [eax + 4]
push eax
call fcn.004a8630
add esp, 4
test esi, esi
mov eax, esi
jne 0x4cafc0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4cac62
mov edi, edi
mov esi, dword [eax + 4]
push eax
call fcn.004a8630
add esp, 4
test esi, esi
mov eax, esi
jne 0x4cafe0
jmp 0x4cac62
mov edi, dword [0x10078094]
push 0
lea edx, [esp + 0x18]
push edx
push 0x40
lea eax, [esp + 0x1f8]
push eax
push esi
call edi
push 0
lea ecx, [esp + 0x18]
push ecx
push 0xf8
lea edx, [esp + 0x100]
push edx
push esi
call edi
push 0
lea eax, [esp + 0x18]
push eax
push 0x28
lea ecx, [esp + 0x88]
push ecx
push esi
call edi
push 0
lea edx, [esp + 0x18]
push edx
push 0x28
lea eax, [esp + 0xb0]
push eax
push esi
call edi
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x28
lea edx, [esp + 0xd8]
push edx
push esi
call edi
mov byte [esp + 0x13], 0
mov dword [esp + 0x1c], 0x50
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0x1f]
push ecx
push esi
call edi
sub dword [esp + 0x1c], 1
jne 0x4cb071
mov eax, dword [esp + 0x6c]
push 0
lea edx, [esp + 0x18]
push edx
push 0x200
push eax
push esi
call edi
mov edx, dword [esp + 0x48]
push 0
lea ecx, [esp + 0x18]
push ecx
push ebp
push edx
push esi
call edi
cmp ebp, ebx
jae 0x4cb0c9
sub ebx, ebp
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0x1f]
push ecx
push esi
call edi
sub ebx, 1
jne 0x4cb0b3
lea edx, [esp + 0x78]
push 4
push edx
call fcn.004c15e0
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x38]
add esp, 8
xor ebp, ebp
mov ecx, eax
mov edx, dword [ecx + 8]
add edx, dword [esp + 0x230]
push 4
mov dword [esp + 0x20], eax
push edx
lea eax, [esp + 0x64]
push eax
call fcn.004c1600
mov eax, dword [ebx + 8]
add esp, 0xc
test eax, eax
je 0x4cb133
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
add ecx, edx
add ecx, ebp
add ecx, dword [esp + 0x38]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x230]
lea edx, [eax + ecx + 2]
push edx
call dword [0x100780e0]
lea ebp, [eax + ebp + 3]
mov ebx, dword [ebx + 4]
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x68]
push ecx
push esi
call edi
push 0
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [esp + 0x84]
push eax
push esi
call edi
mov ecx, dword [esp + 0x54]
cmp dword [esp + 0x1c], ecx
je 0x4cb171
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
jmp 0x4cb0e2
mov ebp, dword [esp + 0x28]
mov ebx, dword [ebp + 8]
mov ecx, dword [esp + 0x230]
add ebx, ecx
push ebx
call dword [0x100780e0]
push 0
lea edx, [esp + 0x18]
push edx
add eax, 1
push eax
push ebx
push esi
call edi
mov eax, ebp
cmp eax, dword [esp + 0x2c]
je 0x4cb1cc
nop
mov ebp, dword [ebp + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x230]
lea ebx, [eax + ecx]
push ebx
call dword [0x100780e0]
push 0
lea edx, [esp + 0x18]
push edx
add eax, 1
push eax
push ebx
push esi
call edi
cmp ebp, dword [esp + 0x2c]
jne 0x4cb1a0
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x24]
cmp eax, ebx
jae 0x4cb1f6
sub ebx, eax
lea ebx, [ebx]
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0x1f]
push ecx
push esi
call edi
sub ebx, 1
jne 0x4cb1e0
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x230]
mov ebx, dword [eax + 8]
test ebx, ebx
mov dword [esp + 0x1c], eax
je 0x4cb22c
lea edx, [ebx + ebp + 2]
push edx
call dword [0x100780e0]
push 0
lea ecx, [esp + 0x18]
push ecx
add eax, 3
push eax
add ebx, ebp
push ebx
push esi
call edi
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x34]
je 0x4cb237
mov eax, dword [eax + 4]
jmp 0x4cb201
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
cmp eax, ebx
jae 0x4cb25b
sub ebx, eax
push 0
lea edx, [esp + 0x18]
push edx
push 1
lea eax, [esp + 0x1f]
push eax
push esi
call edi
sub ebx, 1
jne 0x4cb245
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x20]
cmp eax, ebx
jae 0x4cb286
sub ebx, eax
lea esp, [esp]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push esi
call edi
sub ebx, 1
jne 0x4cb270
push esi
call dword [0x1007810c]
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4cb2a7
mov esi, dword [eax + 4]
push eax
call fcn.004a8630
add esp, 4
test esi, esi
mov eax, esi
jne 0x4cb295
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4cb2c2
nop
mov esi, dword [eax + 4]
push eax
call fcn.004a8630
add esp, 4
test esi, esi
mov eax, esi
jne 0x4cb2b0
mov eax, dword [esp + 0x28]
mov esi, dword [eax + 4]
push eax
call fcn.004a8630
add esp, 4
test esi, esi
mov eax, esi
jne 0x4cb2c6
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4cb2e9
push eax
call fcn.004c17d0
add esp, 4
mov eax, dword [esp + 0x6c]
push eax
call fcn.004c17d0
mov eax, dword [esp + 0x64]
add esp, 4
test eax, eax
je 0x4cb307
push eax
call fcn.004c17d0
add esp, 4
mov eax, dword [esp + 0x234]
test eax, eax
je 0x4cb31b
push eax
call fcn.004c17d0
add esp, 4
mov eax, dword [esp + 0x240]
test eax, eax
je 0x4cb32f
push eax
call fcn.004c17d0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x21c
ret