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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov dword [eax + 8], edx
mov eax, dword [ebp + 0x14]
and eax, 0xfff
lea ecx, [eax + 2]
mov edx, 0x55555556
mov eax, ecx
imul edx
mov eax, ecx
sar eax, 0x1f
sub edx, eax
lea eax, [edx + 1]
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0x14]
and eax, 0x4000
test eax, eax
setne al
movzx edx, al
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 0x14]
sar eax, 2
and eax, 0x3ff
lea ecx, [eax + 2]
mov edx, 0x55555556
mov eax, ecx
imul edx
mov eax, ecx
sar eax, 0x1f
sub edx, eax
lea eax, [edx + 1]
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], edx
mov eax, dword [ebp + 0x14]
and eax, 0x8000
test eax, eax
jne 0x406d01
mov eax, dword [ebp + 8]
add eax, 0x29272
mov dword [esp + 8], 0x10000
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004262d8
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], 0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp + 8]
mov dword [eax + 0x40], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x40]
mov eax, dword [ebp + 8]
mov dword [eax + 0x3c], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x24]
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x68], 0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x68]
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x48]
mov eax, dword [ebp + 8]
mov dword [eax + 0x64], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x64]
mov eax, dword [ebp + 8]
mov dword [eax + 0x60], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x60]
mov eax, dword [ebp + 8]
mov dword [eax + 0x5c], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x5c]
mov eax, dword [ebp + 8]
mov dword [eax + 0x58], edx
mov eax, dword [ebp + 8]
add eax, 0x9272
lea edx, [eax + 1]
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], edx
mov eax, dword [ebp + 8]
lea edx, [eax + 0x9272]
mov eax, dword [ebp + 8]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov byte [eax], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x38], 8
mov eax, dword [ebp + 8]
lea edx, [eax + 0x39272]
mov eax, dword [ebp + 8]
mov dword [eax + 0x30], edx
mov eax, dword [ebp + 8]
lea edx, [eax + 0x39272]
mov eax, dword [ebp + 8]
mov dword [eax + 0x34], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x6c], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x54], 0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x54]
mov eax, dword [ebp + 8]
mov dword [eax + 0x50], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x50]
mov eax, dword [ebp + 8]
mov dword [eax + 0x4c], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x70], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x74], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x78], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x7c], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x80], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x84], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x88], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x8c], 0
mov eax, dword [ebp + 0x14]
and eax, 0x8000
test eax, eax
jne 0x406e9c
mov eax, dword [ebp + 8]
add eax, 0x90
mov dword [esp + 8], 0x8101
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004262d8
mov eax, dword [ebp + 8]
add eax, 0x8192
mov dword [esp + 8], 0x240
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004262d8
mov eax, dword [ebp + 8]
add eax, 0x83d2
mov dword [esp + 8], 0x40
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004262d8
mov eax, 0
leave
ret