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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x7c50a4
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x8c8ca0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
push dword [edi + 0x18]
call fcn.005469a0
mov esi, dword [0x7daa44]
push 5
mov dword [esp + 0x28], eax
call esi
push 0xd
mov dword [esp + 0x20], eax
call esi
push 8
mov dword [esp + 0x2c], eax
call esi
mov dword [esp + 0x2c], eax
call fcn.00544c61
push eax
lea ecx, [esp + 0x1c]
call fcn.00401a5a
and dword [esp + 0x80], 0
push dword [edi + 8]
mov ecx, ebx
call fcn.0040a4d6
mov dword [esp + 0x20], eax
test eax, eax
je 0x40a1c2
cmp eax, 0xffffffff
je 0x40a1c2
mov edx, dword [edi + 0x10]
xor esi, esi
inc esi
mov ecx, edx
and ecx, esi
mov dword [esp + 0x14], ecx
mov ecx, edx
and ecx, 0x10
mov dword [esp + 0x30], ecx
test dl, 4
jne 0x409fb6
test byte [eax + 0x10], 1
jne 0x409fb6
and dword [esp + 0x10], 0
jmp 0x409fba
mov dword [esp + 0x10], esi
mov esi, dword [0x7daa08]
lea eax, [edi + 0x1c]
push eax
lea eax, [esp + 0x58]
push eax
call esi
lea eax, [edi + 0x1c]
push eax
lea eax, [esp + 0x38]
push eax
call esi
lea eax, [edi + 0x1c]
push eax
lea eax, [esp + 0x68]
push eax
call esi
lea eax, [edi + 0x1c]
push eax
lea eax, [esp + 0x48]
push eax
call esi
mov ecx, dword [esp + 0x24]
push 1
call fcn.00546060
xor eax, eax
cmp dword [ebx + 0x58], eax
je 0x40a01e
mov ecx, dword [esp + 0x34]
mov eax, dword [ebx + 0x5c]
lea eax, [eax + ecx + 6]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x60]
lea eax, [eax + ecx + 8]
mov dword [esp + 0x40], eax
jmp 0x40a02d
push eax
push eax
push eax
push eax
lea eax, [esp + 0x44]
push eax
call dword [0x7da9f4]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x18]
push eax
push dword [edi + 8]
mov ecx, ebx
call fcn.005477a4
mov ecx, dword [esp + 0x20]
lea esi, [esp + 0x64]
lea edi, [esp + 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ecx + 0xc]
mov esi, dword [esp + 0x24]
mov eax, dword [esi]
or ecx, 0x450
push ecx
lea ecx, [esp + 0x48]
push ecx
push 0xffffffffffffffff
push dword [esp + 0x24]
mov ecx, esi
call dword [eax + 0x68]
push 5
xor edi, edi
push edi
lea eax, [esp + 0x4c]
push eax
call dword [0x7daa54]
cmp dword [ebx + 0x58], edi
je 0x40a0c9
cmp dword [esp + 0x14], edi
je 0x40a09f
cmp byte [ebx + 0x54], 0
jne 0x40a09f
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x10], edi
je 0x40a0a3
mov eax, dword [esp + 0x1c]
mov edi, dword [ebp + 8]
mov edx, dword [ebx]
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x3c]
push dword [esp + 0x18]
mov ecx, ebx
push eax
lea eax, [esp + 0x64]
push eax
push esi
push dword [edi + 8]
call dword [edx + 0x15c]
jmp 0x40a0cc
mov edi, dword [ebp + 8]
cmp dword [esp + 0x10], 0
je 0x40a0ed
mov eax, dword [esi]
push 0x11
mov dword [esp + 0x30], eax
call dword [0x7daa44]
push eax
mov eax, dword [esp + 0x30]
mov ecx, esi
call dword [eax + 0x30]
jmp 0x40a116
cmp dword [esp + 0x14], 0
mov ecx, esi
je 0x40a10d
mov eax, dword [esp + 0x2c]
mov edx, dword [esi]
not eax
and eax, 0xffffff
push eax
call dword [edx + 0x30]
mov eax, dword [esp + 0x28]
jmp 0x40a11a
push dword [esp + 0x2c]
mov eax, dword [esi]
call dword [eax + 0x30]
mov eax, dword [esp + 0x1c]
cmp byte [ebx + 0x54], 2
mov edx, dword [ebx]
push eax
push dword [esp + 0x18]
mov ecx, ebx
push dword [esp + 0x18]
lea eax, [esp + 0x50]
je 0x40a135
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x64]
push eax
push esi
push dword [edi + 8]
call dword [edx + 0x158]
cmp dword [ebx + 0x58], 0
je 0x40a172
push dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
push dword [esp + 0x14]
mov eax, dword [ebx]
push dword [ecx + 8]
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x64]
push ecx
push esi
push dword [edi + 8]
mov ecx, ebx
call dword [eax + 0x160]
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 0xc]
mov eax, dword [esi]
or ecx, 0x50
push ecx
lea ecx, [esp + 0x48]
push ecx
push 0xffffffffffffffff
push dword [esp + 0x24]
mov ecx, esi
call dword [eax + 0x68]
xor ecx, ecx
cmp dword [esp + 0x30], ecx
je 0x40a1c2
cmp dword [esp + 0x10], ecx
jne 0x40a1c2
movzx eax, byte [ebx + 0x54]
sub eax, ecx
je 0x40a1b4
dec eax
je 0x40a1ae
lea eax, [esp + 0x44]
jmp 0x40a1b8
lea eax, [esp + 0x64]
jmp 0x40a1b8
lea eax, [esp + 0x54]
push eax
push dword [esi + 4]
call dword [0x7da9f0]
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00401a7f
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4