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

Disassembly:
push 0xffffffffffffffff
push 0x4eb87e
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x502c60]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [0x504dd8]
test ebp, ebp
jne 0x4742b7
push 0x4d8
call fcn.004d100c
mov ebp, eax
add esp, 4
mov dword [esp + 0x14], ebp
mov dword [esp + 0x4c], 0
test ebp, ebp
je 0x4742a7
mov ecx, ebp
call fcn.0045c510
mov ecx, ebp
mov byte [esp + 0x4c], 1
call fcn.0045d650
jmp 0x4742a9
xor ebp, ebp
mov dword [esp + 0x4c], 0xffffffff
mov dword [0x504dd8], ebp
push 0
lea ecx, [esp + 0x24]
call fcn.004a2630
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], 2
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
call fcn.00471d30
cmp dword [esi + 0x10], 3
mov dword [esp + 0x4c], 3
jne 0x474394
push dword [esi + 0xc4]
lea ecx, [esp + 0x24]
push 0x4004
call fcn.004a26c0
cmp dword [esi + 0xc4], 0
je 0x474322
mov ecx, dword [esi + 0xc0]
jmp 0x474324
xor ecx, ecx
push dword [esi + 0xc4]
add eax, 4
push ecx
push eax
call fcn.004d1c60
add esp, 0xc
lea ecx, [esp + 0x20]
push 0x10
push 0x4008
call fcn.004a26c0
mov ecx, dword [esi + 0x230]
mov edx, eax
mov dword [edx + 4], ecx
mov ecx, dword [esi + 0x234]
mov dword [edx + 8], ecx
lea ecx, [esp + 0x20]
mov eax, dword [esi + 0x58]
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], 0
push dword [esi + 0x58]
push 0x4009
call fcn.004a26c0
cmp dword [esi + 0x58], 0
je 0x47438a
mov ecx, dword [esi + 0x54]
push dword [esi + 0x58]
jmp 0x474461
push dword [esi + 0x58]
xor ecx, ecx
jmp 0x474461
mov eax, dword [0x504c54]
test eax, eax
jne 0x4743c9
push 0x34
call fcn.004d100c
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x4c], 4
test eax, eax
je 0x4743bd
mov ecx, eax
call fcn.0046eed0
jmp 0x4743bf
xor eax, eax
mov byte [esp + 0x4c], 3
mov dword [0x504c54], eax
imul edi, dword [esi + 0x244], 0x18c
lea ecx, [esp + 0x20]
add edi, dword [eax + 0x18]
push dword [edi + 0x170]
push 0x4004
call fcn.004a26c0
cmp dword [edi + 0x170], 0
je 0x4743fb
mov ecx, dword [edi + 0x16c]
jmp 0x4743fd
xor ecx, ecx
push dword [edi + 0x170]
add eax, 4
push ecx
push eax
call fcn.004d1c60
add esp, 0xc
lea ecx, [esp + 0x20]
push 0x10
push 0x4008
call fcn.004a26c0
mov ecx, dword [edi + 0x1c]
mov dword [eax + 4], ecx
mov dword [eax + 8], 0
mov ecx, dword [edi + 0x20]
mov dword [eax + 0xc], ecx
lea ecx, [esp + 0x20]
mov dword [eax + 0x10], 0
push dword [edi + 0x20]
push 0x4009
call fcn.004a26c0
cmp dword [edi + 0x134], 0
je 0x47445c
mov ecx, dword [edi + 0x130]
jmp 0x47445e
xor ecx, ecx
push dword [edi + 0x20]
push ecx
add eax, 4
push eax
call fcn.004d1c60
add esp, 0xc
lea ecx, [esp + 0x20]
call fcn.004a28c0
mov edi, dword [esp + 0x38]
mov ebx, eax
mov edx, dword [esi + 0x218]
add dword [edi + 4], edx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0x238]
mov dword [eax], ecx
mov eax, dword [esp + 0x40]
mov ecx, dword [esi + 0x23c]
mov dword [eax], ecx
lea ecx, [esp + 0x20]
mov eax, dword [esp + 0x38]
mov dword [eax], ebx
call fcn.004a2810
mov eax, ebx
mov dword [esi + 0x22c], 0
or eax, dword [esi + 0x22c]
mov dword [esi + 0x228], ebx
je 0x4745f9
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0
push eax
mov eax, dword [ebp + 0x348]
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esi + 0x14]
call eax
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x1c]
jne 0x474524
push eax
lea eax, [esp + 0x18]
push eax
push ebx
lea ecx, [esp + 0x2c]
call fcn.004e9450
push eax
push dword [esi + 0x14]
mov eax, dword [ebp + 0x33c]
call eax
test eax, eax
je 0x474622
push 0
lea eax, [esp + 0x1c]
push eax
push dword [esi + 0x22c]
mov eax, dword [ebp + 0x348]
push dword [esi + 0x228]
push dword [esi + 0x14]
call eax
mov eax, dword [esp + 0x18]
cmp eax, dword [esi + 0x228]
jne 0x4745c5
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 0x22c]
jne 0x4745c5
xor ebx, ebx
lea esp, [esp]
xor ecx, ecx
lea eax, [ebx + 0x1000]
cmp ecx, dword [esi + 0x21c]
jg 0x474581
jl 0x47457a
cmp eax, dword [esi + 0x218]
jae 0x474581
mov edi, 0x1000
jmp 0x474589
mov edi, dword [esi + 0x218]
sub edi, ebx
cmp dword [esi + 0x7c], ecx
je 0x474593
mov eax, dword [esi + 0x78]
jmp 0x474595
xor eax, eax
push 0
lea ecx, [esp + 0x18]
add eax, ebx
push ecx
push edi
push eax
push dword [esi + 0x14]
mov eax, dword [ebp + 0x33c]
call eax
test eax, eax
je 0x474622
xor eax, eax
add ebx, edi
cmp eax, dword [esi + 0x21c]
jg 0x4745c5
jl 0x474560
cmp ebx, dword [esi + 0x218]
jb 0x474560
mov ecx, dword [esi + 0x228]
add ecx, dword [esi + 0x218]
mov eax, dword [esi + 0x22c]
adc eax, dword [esi + 0x21c]
push 0
push 0
push eax
mov eax, dword [ebp + 0x348]
push ecx
push dword [esi + 0x14]
call eax
push dword [esi + 0x14]
mov eax, dword [ebp + 0x34c]
call eax
mov bl, 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], 0xffffffff
call fcn.004a2650
mov al, bl
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
xor bl, bl
jmp 0x4745fb