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

Disassembly:
push 0xb8
mov eax, 0x48601a
call fcn.0047ee18
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x44], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x80]
call fcn.0040a1a7
lea eax, [ebp - 0x7c]
call fcn.0040a1ee
and dword [ebp - 4], 0
lea edi, [ebp - 0x5c]
mov esi, ebx
call fcn.0040247a
mov byte [ebp - 4], 1
xor esi, esi
mov dword [ebp - 0x64], esi
mov byte [ebp - 4], 2
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x5c]
call fcn.00406308
push esi
mov eax, edi
push eax
lea eax, [ebp - 0x3c]
push eax
push ebx
call fcn.004060ff
mov byte [ebp - 4], 3
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov byte [ebp - 4], 4
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x54]
call fcn.0044467e
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x88], esi
mov byte [ebp - 4], 5
mov dword [ebp - 0x58], esi
mov byte [ebp - 4], 6
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0xc]
call fcn.0040aaf8
mov esi, eax
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
test eax, eax
je 0x406400
call fcn.00407dfd
mov eax, dword [ebp - 0x60]
mov dword [eax], esi
mov dword [ebp - 0xbc], 0x18
and dword [ebp - 0xb4], 0
and dword [ebp - 0xb0], 0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0xa8], eax
push 6
pop ecx
lea esi, [ebp - 0xbc]
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
push 8
pop edx
lea eax, [ebp - 0x24]
imul ecx, ecx, 0x65
movzx esi, byte [eax]
add ecx, esi
inc eax
dec edx
jne 0x406445
imul ecx, ecx, 0x65
mov eax, ecx
imul eax, eax, 0x12b9b0a5
mov ecx, 0x3b9aca07
div ecx
mov dword [ebp - 0x68], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x406476
lea esi, [eax + 8]
jmp 0x406478
xor esi, esi
push 0x50
call dword [fcn.00401238]
pop ecx
mov dword [ebp - 0xc0], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x4064ab
lea ecx, [ebp - 0x8c]
push ecx
push esi
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0041b6d1
mov edi, eax
jmp 0x4064ad
xor edi, edi
mov byte [ebp - 4], 7
mov dword [ebp - 0x48], edi
mov byte [ebp - 4], 9
lea eax, [ebp - 0x3d]
push eax
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x98]
push eax
push 3
push dword [edi + 0x3c]
push dword [edi + 0x38]
push dword [edi + 0x30]
mov ecx, dword [edi + 0x2c]
call fcn.0041b82a
push eax
lea eax, [ebx + 0x78]
push eax
mov eax, edi
mov esi, dword [ebp - 0x3c]
mov ecx, esi
call fcn.0041e160
mov byte [edi + 0x48], 1
and dword [ebp - 0x48], 0
cmp byte [ebp - 0x3d], 0
sete byte [ebp - 0x35]
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x40650f
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebp - 0x58], edi
cmp dword [0x48c054], 0
je 0x406583
mov al, byte [0x48c058]
cmp byte [0x48c865], 0
je 0x406531
cmp al, 4
jae 0x406564
test al, al
jmp 0x406562
cmp al, 4
jae 0x406539
test al, al
jne 0x406583
mov edx, dword [0x48c044]
mov ecx, 0x80000000
and edx, ecx
xor eax, eax
or eax, edx
je 0x406583
mov edx, dword [0x48c04c]
mov eax, edx
and eax, ecx
xor ecx, ecx
cmp ecx, dword [0x48c048]
jne 0x406583
cmp eax, edx
jne 0x406583
push 0x18
push dword [ebp - 0x68]
push 3
xor eax, eax
cmp byte [ebp - 0x35], al
sete al
push eax
push 0x405030
mov edi, 0x405080
call fcn.0040a08c
mov byte [ebp - 4], 6
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp - 0x54]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x50]
mov dword [eax + 0xc], ecx
lea eax, [ebx + 0x20]
mov dword [ebp - 0x60], eax
push dword [eax]
call dword [fcn.00401168]
mov byte [ebp - 4], 0xd
lea edi, [ebp - 0x48]
mov esi, ebx
call fcn.0040247a
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x5c]
cmp dword [eax], ecx
sete byte [ebp - 0x35]
mov byte [ebp - 4], 0xd
mov esi, edi
call fcn.004022db
cmp byte [ebp - 0x35], 0
je 0x4065ed
push dword [ebx + 0x20]
call dword [fcn.00401168]
lea eax, [ebx + 0x24]
lea edi, [ebp - 0x3c]
call fcn.0041d177
push dword [ebx + 0x20]
call dword [fcn.0040116c]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x60]
push dword [eax]
call dword [fcn.0040116c]
lea edi, [ebx + 0x10]
mov dword [ebp - 0x98], edi
push dword [ebx + 0x10]
call dword [fcn.00401168]
mov byte [ebp - 4], 0xf
mov esi, dword [ebx + 0x28]
jmp 0x40662b
mov eax, dword [esi]
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push eax
call fcn.004061eb
add esi, 4
cmp esi, dword [ebx + 0x2c]
jne 0x406617
mov byte [ebp - 4], 6
push dword [edi]
call dword [fcn.0040116c]
mov byte [ebp - 4], 5
xor ebx, ebx
mov ecx, dword [ebp - 0x58]
cmp ecx, ebx
je 0x40664f
mov eax, dword [ecx]
push 1
call dword [eax]
mov byte [ebp - 4], 4
lea eax, [ebp - 0x8c]
call fcn.004012ac
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x78]
cmp edi, ebx
je 0x406687
mov esi, edi
cmp edi, dword [ebp - 0x74]
je 0x40667f
push dword [esi]
call fcn.0040166a
add esi, 4
cmp esi, dword [ebp - 0x74]
jne 0x406670
push edi
call dword [fcn.0040123c]
pop ecx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov byte [ebp - 4], 2
lea esi, [ebp - 0x3c]
call fcn.004022db
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x64]
cmp ecx, ebx
je 0x4066ad
mov eax, dword [ecx]
push 1
call dword [eax]
mov byte [ebp - 4], bl
lea esi, [ebp - 0x5c]
call fcn.004022db
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x7c]
push eax
call fcn.0040a220
movzx eax, word [ebp - 0x80]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x80]
and eax, 0xf3f
cmp ax, 0x3f
je 0x4066e0
wait
fnclex
fldcw word [ebp - 0x48]
call fcn.0047ee51
ret 0xc