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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1c0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], ecx
call 0x47818b
pop ecx
mov dword [esp + 0xb0], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0xb8], 0
mov dword [esp + 8], ecx
mov edi, dword [eax + 0x1c]
mov esi, dword [eax + 0x20]
mov dword [esp + 0x2c], esi
shl esi, 4
lea ebx, [edi + 0xe]
mov dword [esp + 0x28], edi
jmp 0x4781ed
test esi, esi
je 0x4782f6
cmp dword [edi], 0x80000001
mov dx, 0x17
jne 0x478220
movzx eax, dx
mov eax, dword [eax*4 + 0x478a14]
add eax, dword [esp + 8]
jmp eax
movzx edx, word [edi + 0xc]
movzx eax, dx
mov eax, dword [eax*4 + 0x478a14]
add eax, dword [esp + 8]
jmp eax
lea ecx, [esp + 0xb0]
call fcn.004695f0
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x178]
mov eax, dword [esi + 0x18]
push dword [esi + 0x14]
push ecx
call dword [eax + 0xc]
add esp, 8
mov ebx, dword [esp + 0x1b8]
cmp ebx, 0x41
jae 0x478a12
mov eax, dword [ebp + 0xc]
mov edi, dword [esi + 0x40]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x44]
mov dword [esp + 8], ecx
mov esi, dword [eax + 0x10]
push edi
call dword [eax + 0x14]
add esp, 4
rol ax, 8
mov byte [esp + 6], 0x10
mov byte [esp + 7], bl
mov word [esp + 0x78], ax
lea eax, [esp + 0x78]
mov dword [esp + 0x30], eax
lea eax, [esp + 6]
mov dword [esp + 0x34], 2
mov dword [esp + 0x38], eax
lea eax, [esp + 7]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 0x5bb098
mov dword [esp + 0x44], 6
mov dword [esp + 0x48], 0x5bafb1
mov dword [esp + 0x4c], 0xa
mov dword [esp + 0x50], eax
lea eax, [esp + 0x178]
mov dword [esp + 0x54], 1
mov dword [esp + 0x58], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x5c], ebx
push 6
push eax
push edi
lea edi, [esp + 0xbc]
push edi
call esi
add esp, 0x10
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x48]
mov ecx, dword [eax + 0xc]
push edi
push dword [eax + 8]
call dword [ecx + 0x18]
add esp, 8
mov ebx, dword [edx + 0x10]
mov esi, eax
mov edi, edx
push eax
call dword [edx + 0x14]
add esp, 4
rol ax, 8
mov byte [esp + 6], 0x10
mov word [esp + 0x78], ax
lea eax, [esp + 0x78]
mov dword [esp + 0x30], eax
lea eax, [esp + 6]
mov dword [esp + 0x34], 2
mov dword [esp + 0x38], eax
lea eax, [esp + 7]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 0x5bb098
mov dword [esp + 0x44], 6
mov dword [esp + 0x48], 0x5bb086
mov dword [esp + 0x4c], 0xa
mov dword [esp + 0x50], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x54], 1
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xc]
mov byte [esp + 7], al
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x134]
push 6
lea ecx, [esp + 0x34]
push ecx
push esi
push eax
call ebx
add esp, 0x10
mov eax, dword [edi]
test eax, eax
je 0x478486
push esi
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x4784a4
cmp dword [edi + 8], 9
jb 0x478495
mov esi, dword [esi - 4]
push esi
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
lea ecx, [esp + 0xb0]
call fcn.00438e90
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0x94]
mov eax, dword [eax + 0x98]
mov edx, dword [eax + 8]
dec edx
and edx, 0xfffffff8
lea ecx, [ecx + edx + 8]
lea edx, [esp + 0xa0]
push ecx
push edx
call dword [eax + 0x18]
add esp, 8
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xac]
mov ebx, dword [esp + 0xa8]
mov byte [esp + 0xb0], 0xe
test eax, eax
je 0x4785ae
mov dword [esp + 0x9c], ecx
lea ecx, [esp + 0xb0]
call fcn.0043bd30
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 0x14]
test edi, edi
js 0x478a12
mov ecx, dword [esi + 0x3c]
mov esi, dword [eax + 0x10]
mov dword [esp + 0x98], ecx
je 0x4785ba
movzx eax, byte [0x6019e5]
xor ecx, ecx
mov edx, edi
call fcn.00499510
test eax, eax
jne 0x4785bf
jmp 0x478a12
mov eax, dword [esp + 0x18]
mov byte [eax], 0xe
jmp 0x4789d1
mov eax, 1
mov dword [esp + 0x94], edi
push edi
push esi
mov dword [esp + 0x98], eax
push eax
call fcn.004ef180
add esp, 0xc
mov esi, dword [esp + 0x174]
cmp esi, 0x41
jae 0x478a12
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [esp + 0x14], 4
mov dword [esp + 0x8c], ebx
cmp edi, dword [eax + 0x220]
jo 0x47871f
mov eax, dword [eax + 0x228]
mov ecx, 0xc
mov dword [esp + 0x1c], eax
mul ecx
jo 0x478a12
cmp eax, 0x7ffffffd
jae 0x478a12
test eax, eax
je 0x47871f
mov ecx, dword [ebp + 8]
mov edx, eax
xor edi, edi
mov ebx, dword [ecx + 0x224]
movzx ecx, byte [0x6019e5]
mov dword [esp + 0x20], eax
xor ecx, ecx
call fcn.00499510
test eax, eax
je 0x478a12
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
test edx, edx
je 0x47871f
xor edi, edi
mov dword [esp + 0x24], esi
jmp 0x4786a6
mov dword [esp + 0xc], eax
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x14]
mov dword [eax + edi], ecx
mov ecx, dword [esp + 0xc]
dec edx
add ebx, 0xc
mov dword [eax + edi + 4], ecx
mov dword [eax + edi + 8], esi
add edi, 0xc
test edx, edx
je 0x478717
cmp dword [esp + 0x20], edi
je 0x478717
xor ecx, ecx
mov eax, dword [ebx + 4]
mov esi, dword [ebx + 8]
mov dword [esp + 8], edx
cmp ecx, dword [ebx]
mov ecx, 0x80000000
jo 0x478680
test esi, esi
js 0x478a12
mov edx, esi
mov esi, eax
je 0x4786f2
movzx eax, byte [0x6019e5]
mov dword [esp + 0xc], edx
xor ecx, ecx
mov edx, dword [esp + 0xc]
call fcn.00499510
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x4786f7
jmp 0x478a12
mov eax, 1
mov dword [esp + 0xc], eax
push edx
push esi
push eax
mov esi, edx
call fcn.004ef180
add esp, 0xc
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 8]
mov ecx, esi
jmp 0x47868c
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], edi
xor edi, edi
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x28]
shl eax, 4
nop word cs:[eax + eax]
nop dword [eax + eax]
test eax, eax
je 0x478769
cmp dword [ecx], 0x80000001
je 0x478788
add eax, 0xfffffff0
cmp word [ecx + 0xc], 0x17
lea ecx, [ecx + 0x10]
jne 0x478750
test esi, esi
je 0x47878f
movzx eax, byte [0x6019e5]
xor ecx, ecx
mov edx, esi
call fcn.00499510
mov ebx, eax
test eax, eax
jne 0x478794
jmp 0x478a12
mov edi, dword [ecx + 4]
test esi, esi
jne 0x47876d
mov ebx, 1
push esi
lea eax, [esp + 0x138]
push eax
push ebx
call fcn.004ef180
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov eax, 0x93a80
mov edx, dword [esp + 0x90]
cmp ecx, 0x93a80
cmovb eax, ecx
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x58], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x74], edi
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 1
mov dword [esp + 0x68], 0
mov ecx, dword [esp + 0x10]
cmp byte [edx + 0x24c], 1
jne 0x4788e3
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
shl esi, 4
nop word [eax + eax]
test esi, esi
je 0x478888
cmp dword [eax], 0x80000001
je 0x47887b
add esi, 0xfffffff0
cmp word [eax + 0xc], 0x17
lea eax, [eax + 0x10]
jne 0x478860
jmp 0x478888
mov eax, dword [eax + 4]
inc eax
cmp eax, 1
ja 0x4789e5
xor eax, eax
cmp eax, dword [edx + 0xc0]
jo 0x4788e3
mov esi, dword [edx + 0xc8]
test esi, esi
js 0x478a12
mov ebx, dword [edx + 0xc4]
je 0x4788c3
movzx eax, byte [0x6019e5]
xor ecx, ecx
mov edx, esi
call fcn.00499510
mov edi, eax
test eax, eax
jne 0x4788c8
jmp 0x478a12
mov edi, 1
push esi
push ebx
push edi
call fcn.004ef180
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], esi
mov ebx, dword [ecx + 0x38]
mov edx, dword [ecx + 0x34]
cmp byte [ecx + 0x1c], 0
mov edi, dword [ebx + 8]
je 0x47891d
movzx eax, byte [ecx + 0x2d]
movsd xmm0, qword [ecx + 0x1d]
movsd xmm1, qword [ecx + 0x25]
mov byte [esp + 0x89], al
movsd qword [esp + 0x81], xmm1
movsd qword [esp + 0x79], xmm0
mov al, 1
jmp 0x47899d
xor eax, eax
cmp eax, dword [ecx + 0x20]
jno 0x478935
mov eax, dword [ecx + 0x24]
mov esi, 0x80000000
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x28]
jmp 0x478985
mov esi, dword [ecx + 0x28]
mov dword [esp + 0xc], edx
test esi, esi
js 0x478a12
mov ecx, dword [ecx + 0x24]
je 0x47896b
mov dword [esp + 8], ecx
xor ecx, ecx
mov edx, esi
movzx eax, byte [0x6019e5]
call fcn.00499510
test eax, eax
je 0x478a12
mov ecx, dword [esp + 8]
jmp 0x478970
mov eax, 1
mov dword [esp + 8], eax
push esi
push ecx
push eax
call fcn.004ef180
add esp, 0xc
mov edx, dword [esp + 0xc]
mov eax, esi
mov ecx, dword [esp + 8]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
xor eax, eax
dec edi
mov byte [esp + 0x78], al
lea eax, [esp + 0xb0]
lea esi, [esp + 0x30]
mov ecx, 0x12
and edi, 0xfffffff8
lea edx, [edx + edi + 8]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
push eax
lea eax, [esp + 0x7c]
push eax
push edx
call dword [ebx + 0x2c]
add esp, 0xc
mov eax, dword [esp + 0x18]
mov byte [eax], 0x16
lea ecx, [esp + 0x134]
call fcn.00438e90
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x30]
mov word [eax], 0x1909
call fcn.00460570
cmp dword [esp + 0x60], 0
je 0x4789d1
push dword [esp + 0x64]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x4789d1
ud2