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

Disassembly:
sub esp, 0x44
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
mov eax, dword [ebp + 0xe98]
test eax, eax
push esi
mov esi, dword [ebp + 0x30]
mov ebx, ecx
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
mov edi, 1
je 0x46f892
push 0
mov ecx, ebp
call fcn.0047ed60
xor edi, edi
push 0
mov ecx, ebp
call fcn.0047d500
mov edx, dword [esp + 0x68]
mov ecx, dword [0x641614]
push edx
call fcn.0046ee30
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x46f8bb
mov ebx, eax
jmp 0x46f8c4
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x24]
mov ebx, dword [ecx + eax*4]
mov eax, dword [esp + 0x58]
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x74], edx
mov dword [ebx + 0x78], ebp
mov ecx, dword [0x680098]
mov edx, dword [ecx + 0x10]
xor eax, eax
push 0x3f800000
mov ecx, ebx
mov dword [ebx + 0x60], edx
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x64], eax
call fcn.0046f150
movzx eax, byte [ebp + 0x1388]
mov edx, dword [ebx + 0x30]
mov ecx, eax
or ecx, 0xffffff00
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, eax
mov dword [edx + 0x174], ecx
mov eax, dword [ebx + 0x30]
mov dword [eax + 0x170], 0x19
mov ecx, dword [ebp + 0x30]
mov eax, dword [ecx + 0x164]
test eax, eax
jne 0x46f949
add ecx, 0x108
mov edx, dword [ecx]
mov dword [esp + 0x24], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x28], eax
mov ecx, dword [ecx + 8]
mov dword [esp + 0x2c], ecx
jmp 0x46f953
lea edx, [esp + 0x24]
push edx
call fcn.004d2520
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
call fcn.004ce0e0
mov edx, dword [ebx + 0x30]
lea ecx, [esi + 0x120]
mov eax, dword [ecx]
add edx, 0x120
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
mov ecx, dword [ebx + 0x30]
mov edx, dword [ecx]
push 0
lea eax, [esp + 0x28]
push eax
call dword [edx]
fld dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
fadd dword [0x5da75c]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x38], edx
fstp dword [esp + 0x38]
mov ecx, ebx
mov dword [esp + 0x3c], eax
call fcn.004cd400
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx + 8]
mov ecx, dword [ebx + 0x30]
call fcn.004d1c00
mov eax, dword [esp + 0x5c]
push eax
mov ecx, ebx
call fcn.004ce0a0
mov ecx, dword [esp + 0x60]
push ecx
mov ecx, ebx
call fcn.004cd3d0
mov ecx, ebx
call fcn.004ce260
test edi, edi
je 0x46fa04
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
mov eax, dword [esi]
push 0
push 0
mov ecx, esi
call dword [eax + 0x18]
push esi
mov ecx, ebx
call fcn.0046efc0
call fcn.0058d121
cdq
mov ecx, 6
idiv ecx
push 0
lea eax, [esp + 0x4c]
push eax
mov ecx, dword [edx*4 + 0x617a20]
push ecx
mov ecx, esi
call fcn.0055f4f0
mov eax, dword [esp + 0x68]
test eax, eax
je 0x46fa40
mov ecx, dword [ebx + 0x30]
mov edx, dword [ecx]
push eax
call dword [edx + 0x1c]
mov eax, dword [ebx + 0x30]
or dword [eax + 0x10], 0x100000
mov ebp, dword [ebx + 0x30]
mov ecx, esi
call fcn.0055dd20
mov dword [ebp + 0x168], eax
push 1
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.0055e6b0
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.004d18a0
mov eax, dword [esi + 0xc8]
xor ebp, ebp
test eax, eax
je 0x46fa9d
mov ecx, 2
cmp dword [eax + 0xc], ecx
je 0x46fa97
mov eax, dword [eax + 0xe0]
test eax, eax
jne 0x46fa86
jmp 0x46fa9d
mov ebp, dword [eax + 0xb4]
mov edx, dword [esi + 0x1c8]
push 0
push 0
push 0
push edx
mov ecx, ebp
call fcn.00557530
push ebp
mov ecx, esi
call fcn.0055dea0
mov ecx, ebp
call fcn.00556480
mov edi, eax
mov eax, dword [ebp + 4]
mov esi, dword [eax + 0x10]
mov ecx, ebp
mov dword [esp + 0x5c], esi
call fcn.005564c0
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + 0x24]
mov dword [esp + 0x58], eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x178]
mov ecx, dword [eax + 0xc]
push ecx
mov ecx, dword [0x680038]
mov dword [esp + 0x70], edx
mov dword [esp + 0x6c], eax
call fcn.00536a50
lea ecx, [esi + esi*8]
shl ecx, 2
mov edx, ecx
shr ecx, 2
mov esi, edi
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x68]
mov eax, dword [esi + 0xc]
mov ecx, dword [0x680038]
push eax
call fcn.00536a80
mov ecx, dword [esi + 0x10]
push ecx
mov ecx, dword [0x680038]
call fcn.00536a50
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x58]
add ecx, ecx
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x68]
mov eax, dword [esi + 0x10]
mov ecx, dword [0x680038]
push eax
call fcn.00536a80
mov ecx, ebp
call fcn.005564d0
mov ecx, ebp
call fcn.005564a0
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x5c]
mov dword [esi + 8], ecx
mov dword [esi + 4], edx
mov dword [esi], 1
mov esi, dword [esp + 0x14]
push ebp
mov ecx, esi
call fcn.0055ded0
mov ecx, dword [ebx + 0x30]
push 0
push 0
call fcn.004d19e0
push 0
mov ecx, dword [ebx + 0x30]
push 0
call fcn.004d1a30
mov eax, dword [esp + 0x70]
test eax, eax
je 0x46fbdf
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x690]
test ecx, ecx
jne 0x46fbdf
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x4c]
push edx
mov ecx, esi
call fcn.004d20d0
mov esi, dword [esp + 0x18]
push eax
mov ecx, esi
call fcn.0046f480
jmp 0x46fbe3
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 8]
mov ecx, dword [esi]
inc edx
mov eax, edx
cmp eax, ecx
mov dword [esi + 8], edx
jb 0x46fbf9
mov dword [esi + 8], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x1c