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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x559940]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov ebx, edx
push esi
push edi
mov esi, ecx
cmp dword [ebx + 0xc], 0
jne 0x47567f
xor edi, edi
cmp byte [esi + 0x19], 0
jbe 0x47536b
lea edx, [esi + 0xa0]
cmp byte [edx - 6], 0
je 0x47535f
mov al, byte [esi + 0x13]
cmp al, 8
jae 0x47535f
movzx ecx, al
mov eax, dword [edx]
mov dword [esi + ecx*4 + 0x15c], eax
inc byte [esi + 0x13]
movzx eax, byte [esi + 0x19]
inc edi
add edx, 0x14
cmp edi, eax
jl 0x475343
mov byte [esi + 0x19], 0
cmp dword [ebx + 0x38], 0
je 0x47567f
mov eax, dword [esi + 0x2c]
inc eax
mov dword [esi + 0x2c], eax
mov dword [ebx + 0xc], eax
mov edi, dword [esi + 8]
mov dword [esp + 0x10], eax
test edi, edi
jne 0x4753a8
cmp dword [esi + 0x78], edi
jne 0x47539f
mov eax, dword [esi]
test byte [eax + 0x44], 8
jne 0x47539f
mov byte [esi + 0x17], 1
mov ecx, esi
call fcn.00429580
mov edi, eax
mov ecx, dword [ebx + 0x38]
lea eax, [edi + 0x58]
lea edx, [esp + 0x18]
mov dword [esp + 0xc], eax
call fcn.004428c0
test eax, eax
je 0x4754b0
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x88]
mov edx, dword [esp + 0x18]
cmp dword [eax + 0x30], ecx
jg 0x4753f0
push 0
push dword [esp + 0x14]
mov ecx, edi
push edx
mov edx, 0x43
call fcn.00429830
add esp, 0xc
lea edx, [edi + 0x58]
jmp 0x475429
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 8], edx
lea edx, [edi + 0x58]
mov dword [eax + ecx*4], 0x43
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x475485
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x47545a
push 0
push dword [ebp + 8]
mov edx, 0xd
mov ecx, edi
push 0
call fcn.00429830
add esp, 0xc
jmp 0x475591
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], 0
lea ecx, [eax + ecx*4]
mov eax, dword [ebp + 8]
mov dword [ecx + 8], eax
jmp 0x475583
js 0x475591
cdq
push edx
push eax
call fcn.00409bb0
add esp, 8
cmp word [ebx + 6], ax
jle 0x475591
or dword [ebx + 8], 0x4000
mov word [ebx + 6], ax
jmp 0x475591
push dword [esp + 0x10]
mov edx, dword [ebx + 0x38]
mov ecx, esi
call fcn.004483e0
mov eax, dword [edi + 0xc]
lea edx, [edi + 0x58]
mov ecx, dword [edi + 0x88]
add esp, 4
mov dword [esp + 0xc], edx
cmp dword [eax + 0x30], ecx
jg 0x4754f3
push 0
push 0
push dword [esp + 0x18]
mov edx, 0x11
mov ecx, edi
call fcn.00429830
mov edx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x475530
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x11
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x475555
push 0
push dword [ebp + 8]
mov ecx, edi
push edx
mov edx, 0x16
call fcn.00429830
add esp, 0xc
jmp 0x475591
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [eax + ecx*4], 0x16
mov dword [eax + ecx*4 + 4], edx
lea ecx, [eax + ecx*4]
mov eax, dword [ebp + 8]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], 0
cmp dword [ebx + 0x3c], 0
je 0x47567f
inc dword [esi + 0x2c]
mov ecx, esi
mov eax, dword [esi + 0x2c]
mov dword [ebx + 0x10], eax
inc dword [esi + 0x2c]
mov edx, dword [ebx + 0x3c]
push eax
mov dword [esp + 0x18], eax
call fcn.004483e0
mov eax, dword [edi + 0xc]
add esp, 4
mov ecx, dword [edi + 0x88]
mov esi, dword [esp + 0x14]
cmp dword [eax + 0x30], ecx
jg 0x4755e5
push 0
push 0
push esi
mov edx, 0x11
mov ecx, edi
call fcn.00429830
mov edx, dword [esp + 0x18]
add esp, 0xc
jmp 0x47561a
mov edx, dword [esp + 0xc]
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov dword [eax + ecx*4], 0x11
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0xc]
lea ebx, [esi + 1]
mov ecx, dword [edi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x475652
push esi
push ebx
push dword [esp + 0x18]
mov edx, 0x93
mov ecx, edi
call fcn.00429830
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x93
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret