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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x519100]
xor eax, esp
mov dword [esp + 0x38], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov dword [esp + 8], edx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebx + 0x7c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], ecx
test ecx, ecx
je 0x4753a9
mov esi, dword [ecx + 8]
push 0
push esi
push eax
push edx
mov dword [esp + 0x30], esi
call fcn.004854f0
mov ecx, edx
mov dword [esp + 0x24], eax
push ecx
push eax
push 0
push esi
mov dword [esp + 0x4c], ecx
call fcn.004855e0
cmp eax, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x14]
jne 0x4753b2
cmp edx, eax
jne 0x4753b2
xor edx, edx
mov eax, ecx
div esi
test edx, edx
jne 0x4753ae
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x28], esi
xor esi, esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], eax
test ecx, ecx
je 0x47538a
jmp 0x4750e4
mov eax, dword [esp + 0x24]
push dword [esp + 0x3c]
mov ecx, ebx
push eax
push edx
push dword [esp + 0x1c]
call fcn.00474cd0
mov dword [esp + 0x30], eax
test eax, eax
je 0x475206
test esi, esi
je 0x4751e6
mov edx, dword [esp + 0x14]
cmp edx, dword [ebx + 0x44]
jb 0x47512e
ja 0x47511d
mov ecx, dword [esp + 0xc]
cmp ecx, dword [ebx + 0x40]
jb 0x475132
push esi
push 0
push edi
call fcn.00486ef0
add esp, 0xc
jmp 0x4751de
mov ecx, dword [esp + 0xc]
mov eax, dword [ebx + 0x74]
mov dword [esp + 0x34], eax
test eax, eax
je 0x475172
cmp dword [ebx + 0x64], 0
je 0x475172
push dword [ebx + 0x78]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], 0
push ecx
mov ecx, dword [esp + 0x14]
push esi
push edx
push ecx
push edi
mov ecx, eax
call dword [0x4cc2f8]
call dword [esp + 0x4c]
mov ecx, eax
add esp, 0x18
mov eax, dword [esp + 0x38]
jmp 0x475192
lea eax, [esp + 0x1c]
push eax
push esi
push edx
push ecx
mov ecx, dword [ebx + 0x48]
mov edx, edi
call fcn.004640b0
mov ecx, dword [esp + 0x2c]
xor edx, edx
add esp, 0x10
test eax, eax
cmovne ecx, edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x38], eax
test eax, eax
jne 0x47529c
cmp esi, ecx
je 0x4751b9
mov eax, esi
sub eax, ecx
push eax
lea eax, [ecx + edi]
push 0
push eax
call fcn.00486ef0
add esp, 0xc
mov eax, dword [esp + 0x40]
cmp byte [eax + 0x1c], 0
jne 0x4751de
push dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov ecx, ebx
push dword [esp + 0x30]
push esi
push edi
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.00474d80
mov eax, dword [esp + 0x30]
add edi, esi
xor esi, esi
push dword [esp + 0x20]
push eax
push edi
call fcn.00486970
mov eax, dword [esp + 0x18]
add esp, 0xc
add edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
jmp 0x475242
test esi, esi
je 0x47521c
add esi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
jmp 0x475242
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x20]
mov esi, edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], ecx
sub dword [ebp + 0x14], edx
add dword [esp + 0x10], edx
mov edx, dword [esp + 0x18]
adc edx, 0
mov dword [esp + 0x30], esi
add dword [esp + 0x24], 1
mov dword [esp + 0x18], edx
adc dword [esp + 0x3c], 0
cmp dword [ebp + 0x14], 0
jne 0x4750e0
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x38], esi
mov esi, edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], ecx
test edx, edx
je 0x47538a
jmp 0x4752a4
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x38], 0
jne 0x47538a
cmp ecx, dword [ebx + 0x44]
jb 0x4752e6
ja 0x4752bb
cmp eax, dword [ebx + 0x40]
jb 0x4752e6
push esi
push 0
push edi
call fcn.00486ef0
mov ebx, dword [esp + 0x4c]
add esp, 0xc
mov eax, dword [esp + 0x38]
inc dword [ebx + 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0048471b
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebx + 0x74]
mov dword [esp + 0x30], edx
test edx, edx
je 0x475326
cmp dword [ebx + 0x64], 0
je 0x475326
push dword [ebx + 0x78]
lea eax, [esp + 0x40]
mov dword [esp + 0x40], 0
push eax
mov eax, dword [esp + 0x14]
push esi
push ecx
push eax
push edi
mov ecx, edx
call dword [0x4cc2f8]
call dword [esp + 0x48]
mov ecx, eax
add esp, 0x18
mov eax, dword [esp + 0x3c]
jmp 0x475346
lea edx, [esp + 0x1c]
push edx
push esi
push ecx
mov ecx, dword [ebx + 0x48]
mov edx, edi
push eax
call fcn.004640b0
mov ecx, dword [esp + 0x2c]
xor edx, edx
add esp, 0x10
test eax, eax
cmovne ecx, edx
mov dword [esp + 0x38], eax
test eax, eax
jne 0x47538a
cmp esi, ecx
je 0x475365
mov eax, esi
sub eax, ecx
push eax
lea eax, [ecx + edi]
push 0
push eax
call fcn.00486ef0
add esp, 0xc
mov eax, dword [esp + 0x40]
cmp byte [eax + 0x1c], 0
jne 0x47538a
push dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov ecx, ebx
push dword [esp + 0x30]
push esi
push edi
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.00474d80
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
inc dword [ebx + 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0048471b
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 0x14]
jmp 0x4753b6
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x4753ed
cmp dword [ebx + 0x64], 0
je 0x4753ed
push dword [ebx + 0x78]
mov ebx, dword [ebp + 0x14]
lea ecx, [esp + 0x44]
push ecx
push ebx
push eax
push edx
push edi
mov ecx, esi
mov dword [esp + 0x58], 0
call dword [0x4cc2f8]
call esi
mov esi, dword [esp + 0x58]
add esp, 0x18
jmp 0x475412
lea esi, [esp + 0x1c]
push esi
push ecx
mov ecx, dword [ebx + 0x48]
push eax
push edx
mov edx, edi
call fcn.004640b0
mov ebx, dword [ebp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x2c]
xor ecx, ecx
add esp, 0x10
test esi, esi
cmovne eax, ecx
test esi, esi
jne 0x47542a
cmp ebx, eax
je 0x47542a
sub ebx, eax
lea ecx, [edi + eax]
push ebx
push esi
push ecx
call fcn.00486ef0
add esp, 0xc
mov ecx, dword [esp + 0x44]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048471b
mov esp, ebp
pop ebp
ret 0x10