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

Disassembly:
sub esp, 0x88
push ebx
push ebp
mov ebp, dword [esp + 0x94]
xor ebx, ebx
xor eax, eax
cmp ebp, ebx
push esi
push edi
mov dword [esp + 0x10], eax
je 0x478410
mov edi, dword [0x4c30e8]
push ebx
call edi
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x38], esi
je 0x47840e
lea eax, [esp + 0x3c]
push eax
push 0x18
push ebp
call dword [0x4c30d4]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
push ebx
push ebx
lea eax, [esp + 0x9c]
push eax
mov dword [esp + 0x64], ecx
push ebx
lea ecx, [esp + 0x64]
push ecx
push esi
mov dword [esp + 0x6c], 0x28
mov dword [esp + 0x74], edx
mov word [esp + 0x78], 1
mov word [esp + 0x7a], 0x20
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
call dword [0x4c3104]
mov ebp, eax
cmp ebp, ebx
je 0x4783f8
push ebp
push esi
call dword [0x4c3100]
push esi
mov dword [esp + 0x34], eax
call edi
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x2c], edi
je 0x4783e5
lea edx, [esp + 0x7c]
push edx
push 0x18
push ebp
call dword [0x4c30d4]
mov eax, dword [esp + 0x88]
mov ecx, eax
and ecx, 0x80000003
jns 0x478165
dec ecx
or ecx, 0xfffffffc
inc ecx
je 0x47818b
jmp 0x478170
add eax, 1
mov edx, eax
and edx, 0x80000003
jns 0x478182
dec edx
or edx, 0xfffffffc
inc edx
jne 0x478170
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x9c]
push eax
push edi
call dword [0x4c3100]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push 0xcc0020
push ebx
push ebx
push edi
push ecx
push edx
push ebx
push ebx
push esi
mov dword [esp + 0x58], eax
call dword [0x4c30dc]
push 0x660
push 2
mov dword [esp + 0x1c], 0x64
call dword [0x4c3170]
mov ebp, eax
push ebp
mov dword [esp + 0x28], ebp
call dword [0x4c3174]
push ebx
mov esi, eax
push ebx
push 0x7fffffff
push 0x7fffffff
lea eax, [esi + 0x10]
push eax
mov dword [esi], 0x20
mov dword [esi + 4], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
call dword [0x4c34e0]
mov eax, dword [esp + 0x84]
add eax, 0xffffffff
imul eax, dword [esp + 0x88]
add eax, dword [esp + 0x90]
cmp dword [esp + 0x44], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebx
jle 0x478398
mov ecx, dword [esp + 0x40]
xor edi, edi
test ecx, ecx
jle 0x478378
mov edx, dword [esp + 0x14]
add edx, 2
shl edx, 4
mov dword [esp + 0x1c], edx
lea ecx, [ecx]
cmp edi, ecx
mov edx, edi
mov dword [esp + 0x28], edx
lea eax, [eax + edi*4]
jge 0x478369
cmp byte [eax], 0
ja 0x478272
cmp byte [eax + 1], 0
ja 0x478272
cmp byte [eax + 2], 0
jbe 0x47827c
add edi, 1
add eax, 4
cmp edi, ecx
jl 0x478261
cmp edi, edx
jle 0x478369
mov ecx, dword [esp + 0x14]
cmp dword [esi + 8], ecx
jb 0x4782c1
push ebp
call dword [0x4c3164]
mov eax, dword [esp + 0x1c]
add dword [esp + 0x14], 0x64
add eax, 0x640
push 2
push eax
push ebp
mov dword [esp + 0x28], eax
call dword [0x4c31dc]
push eax
mov dword [esp + 0x28], eax
call dword [0x4c3174]
mov edx, dword [esp + 0x28]
mov esi, eax
lea ebp, [ebx + 1]
push ebp
push edi
push ebx
push edx
mov edx, dword [esi + 8]
add edx, 2
shl edx, 4
add edx, esi
push edx
call dword [0x4c34e0]
mov eax, dword [esp + 0x28]
cmp eax, dword [esi + 0x10]
lea ebx, [esi + 0x10]
jge 0x4782e8
mov dword [ebx], eax
mov eax, dword [esp + 0x18]
cmp eax, dword [esi + 0x14]
jge 0x4782f4
mov dword [esi + 0x14], eax
cmp edi, dword [esi + 0x18]
jle 0x4782fc
mov dword [esi + 0x18], edi
cmp ebp, dword [esi + 0x1c]
jle 0x478304
mov dword [esi + 0x1c], ebp
add dword [esi + 8], 1
cmp dword [esi + 8], 0x7d0
jne 0x47835d
mov eax, dword [esp + 0x1c]
push esi
push eax
push 0
call dword [0x4c30a0]
mov ebp, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47833d
push 2
push ebp
push eax
push eax
call dword [0x4c309c]
push ebp
call dword [0x4c30f0]
jmp 0x478341
mov dword [esp + 0x10], ebp
push 0
push 0
push 0x7fffffff
push 0x7fffffff
push ebx
mov dword [esi + 8], 0
call dword [0x4c34e0]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
add edi, 1
cmp edi, ecx
jl 0x478250
sub eax, dword [esp + 0x88]
add ebx, 1
cmp ebx, dword [esp + 0x44]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebx
jl 0x478235
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
add ecx, 2
push esi
shl ecx, 4
push ecx
push 0
call dword [0x4c30a0]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4783ca
push 2
push esi
push eax
push eax
call dword [0x4c309c]
push esi
call dword [0x4c30f0]
jmp 0x4783ce
mov dword [esp + 0x10], esi
mov edx, dword [esp + 0x34]
push edx
push edi
call dword [0x4c3100]
push edi
call dword [0x4c30d8]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
push eax
push esi
call dword [0x4c3100]
push eax
call dword [0x4c30f0]
push esi
call dword [0x4c30d8]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret