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

Disassembly:
sub esp, 0x40
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
lea ecx, [eax + 1]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x50]
add ecx, edx
push esi
mov esi, dword [0x50deb4]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x5c]
lea eax, [eax + ebp - 1]
push edi
mov edi, dword [esp + 0x54]
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], ecx
lea eax, [ecx + 1]
add edi, ebp
add ecx, edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x6c]
cmp ecx, 8
jne 0x4756d2
xor ebx, ebx
lea ecx, [esp + 0x30]
push ebx
push ecx
push esi
call fcn.004606b0
lea edx, [esp + 0x1c]
push ebx
push edx
push esi
call fcn.004606b0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov edi, dword [esi + 0x38]
mov eax, dword [0x51e948]
xor ebx, ebx
and edi, 0xfff8f8ff
cmp eax, ebx
mov dword [esp + 0x5c], edi
je 0x47570a
cmp dword [eax + 0x68], ecx
jne 0x4756f8
cmp dword [eax + 0x6c], ecx
je 0x4757bb
push 0x51e948
call fcn.0044b6b0
mov eax, dword [0x51e948]
add esp, 4
cmp dword [0x50df1c], 0x14
jne 0x475753
mov eax, dword [0x51d14c]
push 8
push 8
mov ebp, dword [eax + 0x88]
mov dword [eax + 0x88], 1
call fcn.00447a60
mov dword [0x51e948], eax
mov eax, dword [0x51d14c]
push 0x475630
mov dword [eax + 0x88], ebp
call fcn.00449ec0
mov eax, dword [0x51e948]
add esp, 0xc
cmp eax, ebx
je 0x475990
push ebx
push 0x808080
push 7
push ebx
push ebx
push ebx
push eax
call fcn.0044e7e0
add esp, 0x1c
xor ebp, ebp
mov edi, 1
cmp edi, ebp
mov eax, edi
ja 0x47577e
mov eax, ebp
mov ecx, dword [0x51e948]
push eax
push ebx
push ecx
call fcn.0044e360
mov edx, dword [0x51e948]
push eax
push ebp
push edi
push edx
call fcn.0044e420
add esp, 0x1c
inc edi
cmp edi, 8
jb 0x475776
inc ebp
cmp ebp, 8
jb 0x475771
mov eax, dword [0x51e948]
mov ebp, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov edi, dword [esp + 0x5c]
cmp eax, ebx
je 0x475990
cmp ebp, 8
jb 0x475990
cmp edx, 8
jb 0x475990
lea ecx, [esp + 0x40]
mov edi, 7
push ecx
push eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
call fcn.00447860
mov edx, dword [0x51e948]
mov dword [edx + 0x38], 8
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], eax
mov eax, dword [0x51e948]
mov dword [esp + 0x30], ecx
inc edx
lea ecx, [eax + 0x48]
mov dword [esp + 0x2c], edx
push ecx
lea edx, [esp + 0x2c]
push eax
push edx
push esi
call fcn.00466140
mov ecx, dword [0x51e948]
mov eax, 1
sub eax, ebp
mov ebp, dword [esp + 0x30]
add ebp, eax
mov dword [esp + 0x30], ebp
mov dword [ecx + 0x38], 0x208
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x3c], eax
add eax, edi
mov dword [esp + 0x44], eax
mov eax, dword [0x51e948]
mov dword [esp + 0x38], edx
lea edx, [esp + 0x38]
lea ecx, [eax + 0x48]
push ecx
push eax
push edx
push esi
call fcn.00466140
mov eax, dword [esp + 0x5c]
mov ebp, 8
add eax, ebp
mov dword [esp + 0x5c], eax
mov eax, dword [0x51e948]
mov dword [eax + 0x38], 0x108
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x48], eax
add eax, edi
mov dword [esp + 0x50], eax
mov eax, dword [0x51e948]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x54], edx
lea ecx, [eax + 0x48]
lea edx, [esp + 0x48]
push ecx
push eax
push edx
push esi
call fcn.00466140
mov eax, dword [esp + 0x48]
mov dword [esp + 0x78], ebx
add eax, ebp
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x48], eax
mov eax, dword [0x51e948]
mov dword [esp + 0x80], edi
mov dword [eax + 0x38], ebp
mov edx, dword [0x51e948]
lea ecx, [esp + 0x78]
push ecx
push edx
mov dword [esp + 0x8c], ebx
call fcn.00447860
mov eax, dword [0x51e948]
add esp, 0x40
lea edx, [esp + 0x30]
lea ecx, [eax + 0x48]
push ecx
push eax
push edx
push esi
call fcn.00466140
mov eax, dword [0x51e948]
lea ecx, [esp + 0x50]
push ecx
mov dword [esp + 0x54], ebx
mov dword [eax + 0x38], ebp
mov edx, dword [0x51e948]
push edx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], edi
call fcn.00447860
mov eax, dword [0x51e948]
lea edx, [esp + 0x28]
lea ecx, [eax + 0x48]
push ecx
push eax
push edx
push esi
call fcn.00466140
mov eax, dword [0x51e948]
add esp, 0x28
mov edi, dword [esp + 0x5c]
lea ecx, [eax + 0x58]
add eax, 0x48
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
jmp 0x4759c4
mov edx, dword [esi + 0x38]
lea eax, [esp + 0x30]
and edx, 0x70700
push eax
lea ecx, [esp + 0x34]
push esi
or edx, 0xc
push ecx
push esi
mov dword [esi + 0x38], edx
call fcn.004482b0
lea edx, [esp + 0x20]
lea eax, [esp + 0x20]
push edx
push esi
push eax
push esi
call fcn.004482b0
add esp, 0x20
mov ecx, dword [esi + 0x38]
and ecx, 0x70700
or ecx, edi
pop edi
mov dword [esi + 0x38], ecx
pop esi
pop ebp
pop ebx
add esp, 0x40
ret