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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
call fcn.00410060
mov edi, dword [ebp + 8]
lea esi, [edi + 0xec]
mov dword [esp + 0x1c], esi
call fcn.00410060
mov edx, dword [ebp + 0xc]
mov al, byte [ebp + 0x24]
mov cl, byte [ebp + 0x20]
lea esi, [edi + 0x14]
push edx
mov byte [edi + 4], al
mov byte [edi + 5], cl
mov dword [esp + 0x10], esi
call fcn.0040f180
mov eax, dword [ebp + 0x10]
lea esi, [edi + 0x24]
push eax
mov dword [esp + 0x1c], esi
call fcn.0040f180
lea eax, [edi + 0xbc]
mov ebx, 0x4956ec
mov dword [esp + 0x14], eax
call fcn.00402ec0
mov ecx, dword [ebp + 0x18]
xor ebx, ebx
mov dword [edi + 0x10], ecx
lea ecx, [esp + 0x30]
mov dword [edi + 0xcc], 1
mov byte [edi + 0xc], 1
mov dword [edi + 8], ebx
mov dword [edi + 0xd0], ebx
mov dword [edi + 0xe4], ebx
call fcn.0040cc40
lea ecx, [esp + 0x40]
call fcn.0040cc40
lea ecx, [esp + 0x50]
call fcn.0040cc40
mov eax, dword [edi + 0x10]
cmp eax, ebx
jge 0x470c0a
push eax
call fcn.0041709d
add esp, 4
mov dword [edi + 0x10], eax
mov byte [edi + 0xc], bl
cmp dword [edi + 0x10], 4
jne 0x470c21
mov edx, dword [esp + 0xc]
push edx
call fcn.00469657
mov dword [edi + 0x10], 1
mov eax, dword [esp + 0xc]
push eax
call fcn.004394b4
test al, al
je 0x470c85
push esi
call fcn.004394b4
test al, al
je 0x470c85
call dword [0x487718]
push eax
push edi
call fcn.00452058
mov ecx, dword [edi]
mov edx, dword [ecx]
mov dword [esp + 0xc], edx
lea eax, [esp + 0xc]
mov ecx, dword [ebp + 0x14]
push eax
push ecx
call fcn.0043ad4e
lea ecx, [esp + 0x50]
call fcn.00402fb0
lea ecx, [esp + 0x40]
call fcn.00402fb0
lea ecx, [esp + 0x30]
call fcn.00402fb0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov esi, dword [esp + 0xc]
xor edi, edi
call fcn.00402ea0
cmp word [eax], 0x5b
mov ebx, dword [ebp + 8]
jne 0x4710b9
mov edi, dword [ebx + 0x18]
lea edi, [edi - 1]
call fcn.00402ea0
cmp word [eax], 0x5d
jne 0x4710b9
mov edi, dword [ebx + 0x18]
mov dword [esp + 0x10], 1
sub edi, 2
push edi
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edx
call fcn.00469d9f
test al, al
je 0x4710b9
lea eax, [esp + 0x30]
push 0x495c94
push eax
call fcn.0044ad4f
add esp, 8
test al, al
jne 0x470fb5
lea ecx, [esp + 0x30]
push 0x495cac
push ecx
call fcn.0044ad4f
add esp, 8
test al, al
jne 0x47100b
lea edx, [esp + 0x30]
push 0x495d5c
push edx
call fcn.0044ad4f
add esp, 8
test al, al
jne 0x471043
lea eax, [esp + 0x30]
push 0x495d6c
push eax
call fcn.0044ad4f
add esp, 8
test al, al
je 0x470da1
mov eax, dword [ebx + 8]
test al, 1
jne 0x471067
or eax, 2
lea esi, [ebx + 0x34]
mov dword [ebx + 8], eax
call fcn.00401da0
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x24]
push edx
push esi
call fcn.00470925
cmp dword [eax], 0
je 0x470cc0
lea ecx, [esp + 0x50]
call fcn.00402fb0
lea ecx, [esp + 0x40]
call fcn.00402fb0
lea ecx, [esp + 0x30]
call fcn.00402fb0
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
lea eax, [esp + 0x30]
push 0x495c04
push eax
call fcn.0044ad4f
add esp, 8
test al, al
je 0x470dce
mov esi, dword [esp + 0x14]
or dword [ebx + 8], 8
lea ecx, [esp + 0x40]
push ecx
call fcn.0040f180
jmp 0x470cc0
lea edx, [esp + 0x30]
push 0x495c20
push edx
call fcn.0044ad4f
add esp, 8
test al, al
je 0x470dff
or dword [ebx + 8], 0x10
lea esi, [ebx + 0x78]
call fcn.00401da0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x2c]
push ecx
jmp 0x470d69
lea edx, [esp + 0x30]
push 0x495c4c
push edx
call fcn.0044ad4f
add esp, 8
test al, al
je 0x470e34
mov eax, dword [esp + 0x40]
or dword [ebx + 8], 0x80
push eax
call fcn.00413fba
add esp, 4
mov dword [ebx + 0xd4], eax
jmp 0x470cc0
lea ecx, [esp + 0x30]
push 0x495c50
push ecx
call fcn.0044ad4f
add esp, 8
test al, al
je 0x470e69
mov edx, dword [esp + 0x40]
or dword [ebx + 8], 0x100
push edx
call fcn.00413fba
add esp, 4
mov dword [ebx + 0xd8], eax
jmp 0x470cc0
lea eax, [esp + 0x30]
push 0x495c54
push eax
call fcn.0044ad4f
add esp, 8
test al, al
je 0x470e9e
mov ecx, dword [esp + 0x40]
or dword [ebx + 8], 0x200
push ecx
call fcn.00413fba
add esp, 4
mov dword [ebx + 0xdc], eax
jmp 0x470cc0
lea edx, [esp + 0x30]
push 0x495c58
push edx
call fcn.0044ad4f
add esp, 8
test al, al
je 0x470ed3
mov eax, dword [esp + 0x40]
or dword [ebx + 8], 0x400
push eax
call fcn.00413fba
add esp, 4
mov dword [ebx + 0xe0], eax
jmp 0x470cc0
lea ecx, [esp + 0x30]
push 0x495c5c
push ecx
call fcn.0044ad4f
add esp, 8
test al, al
je 0x470f05
mov edx, dword [esp + 0x40]
or dword [ebx + 8], 0x20
push edx
call fcn.00413fba
add esp, 4
mov dword [ebx + 0xcc], eax
jmp 0x470cc0
lea eax, [esp + 0x30]
push 0x495d44
push eax
call fcn.0044ad4f
add esp, 8
test al, al
je 0x470f3a
lea ecx, [esp + 0x40]
push 0x4956ec
push ecx
call fcn.0044ad4f
add esp, 8
test al, al
je 0x470f8e
or dword [ebx + 8], 0x40
jmp 0x470cc0
lea edx, [esp + 0x30]
push 0x495d84
push edx
call fcn.0044ad4f
add esp, 8
test al, al
je 0x470f74
mov eax, dword [ebx + 8]
test al, 2
jne 0x471090
or eax, 1
mov dword [ebx + 8], eax
lea eax, [esp + 0x40]
push eax
lea esi, [esp + 0x54]
call fcn.0040f180
jmp 0x470cc0
lea ecx, [esp + 0x30]
push 0x4956ec
push ecx
call fcn.00452109
add esp, 8
test al, al
je 0x470cc0
lea ecx, [esp + 0x50]
call fcn.00402fb0
lea ecx, [esp + 0x40]
call fcn.00402fb0
lea ecx, [esp + 0x30]
call fcn.00402fb0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
lea edx, [esp + 0x40]
push 0x4956ec
push edx
call fcn.0044ad4f
add esp, 8
test al, al
je 0x470f8e
mov ebx, dword [ebx]
test ebx, ebx
je 0x470fe5
mov eax, dword [ebx]
mov edx, dword [ebp + 0x14]
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], eax
push edx
jmp 0x470c57
lea ecx, [esp + 0x50]
call fcn.00402fb0
lea ecx, [esp + 0x40]
call fcn.00402fb0
lea ecx, [esp + 0x30]
call fcn.00402fb0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
lea eax, [esp + 0x40]
push 0x4956ec
push eax
call fcn.0044ad4f
add esp, 8
test al, al
je 0x470f8e
call dword [0x487718]
push eax
push ebx
call fcn.00452058
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov dword [esp + 0x14], edx
lea eax, [esp + 0x14]
jmp 0x470c52
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.0043770b
mov esi, dword [esp + 0x1c]
add esp, 8
push esi
call dword [0x487630]
test eax, eax
je 0x470fe5
push esi
jmp 0x47102c
lea ecx, [esp + 0x50]
call fcn.00402fb0
lea ecx, [esp + 0x40]
call fcn.00402fb0
lea ecx, [esp + 0x30]
call fcn.00402fb0
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
lea ecx, [esp + 0x50]
call fcn.00402fb0
lea ecx, [esp + 0x40]
call fcn.00402fb0
lea ecx, [esp + 0x30]
call fcn.00402fb0
mov eax, 0xfffffffc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
lea edx, [esp + 0x50]
push edx
call fcn.004394b4
test al, al
jne 0x4710d5
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x50]
push eax
call fcn.0040f180
cmp dword [ebx + 8], 0
jne 0x4710e2
mov dword [ebx + 8], 1
or dword [ebx + 8], 4
cmp byte [ebx + 0xc], 0
jne 0x4710f5
mov esi, dword [esp + 0x18]
call fcn.004119c0
test byte [ebx + 8], 1
je 0x47110a
cmp byte [ebx + 0xc], 0
jne 0x47110a
mov esi, dword [esp + 0xc]
call fcn.004119c0
cmp byte [ebp + 0x1c], 0
push ebx
push 0x4689e1
je 0x471125
call dword [0x48762c]
push eax
call dword [0x48765c]
jmp 0x47112b
call dword [0x487628]
mov esi, dword [esp + 0x1c]
mov edi, dword [ebp + 0x14]
push esi
push edi
call fcn.0044aa4e
call fcn.00410060
cmp dword [ebx + 0xe4], 1
jl 0x471155
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
push ebx
call fcn.00452058
mov ebx, dword [ebx + 0xe4]
lea ecx, [esp + 0x50]
call fcn.00402fb0
lea ecx, [esp + 0x40]
call fcn.00402fb0
lea ecx, [esp + 0x30]
call fcn.00402fb0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x20