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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b54b8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4e54c0]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x4e54c0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x90], 0xffffffff
test edi, edi
je 0x40a213
push dword [esp + 0x10]
mov edx, dword [edi + 4]
push ecx
mov ecx, dword [edi]
call fcn.0040ba90
mov eax, dword [edi]
add esp, 8
mov dword [edi + 4], eax
cmp dword [esi + 0x10], 0
je 0x40a213
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
xor eax, eax
mov dword [esp + 0x90], 3
push 0xffffffffffffffff
push eax
push esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
call fcn.004033d0
xor eax, eax
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
mov byte [esp + 0x90], 5
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x3c]
call fcn.0040a240
mov edx, eax
mov byte [esp + 0x90], 6
lea ecx, [esp + 0x38]
call fcn.00409970
test al, al
mov byte [esp + 0x90], 5
sete bl
cmp dword [esp + 0x34], 8
jb 0x409f62
push dword [esp + 0x20]
call fcn.0048fa72
add esp, 4
lea eax, [esp + 0x20]
lea ecx, [esp + 0x38]
push eax
call fcn.0040a3d0
test bl, bl
je 0x40a014
lea ecx, [esp + 0x50]
mov byte [esp + 0x90], 7
cmp ecx, eax
je 0x409f92
push 0xffffffffffffffff
push 0
push eax
call fcn.004033d0
mov byte [esp + 0x90], 5
cmp dword [esp + 0x34], 8
jb 0x409fad
push dword [esp + 0x20]
call fcn.0048fa72
add esp, 4
lea ecx, [esp + 0x50]
call fcn.00409b50
test al, al
jne 0x409fc8
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x18]
call fcn.0040b530
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x3c]
call fcn.0040a240
lea ecx, [esp + 0x38]
mov byte [esp + 0x90], 8
cmp ecx, eax
je 0x409ff0
push 0xffffffffffffffff
push 0
push eax
call fcn.004033d0
mov byte [esp + 0x90], 5
cmp dword [esp + 0x34], 8
jb 0x409f21
push dword [esp + 0x20]
call fcn.0048fa72
add esp, 4
jmp 0x409f21
lea ecx, [esp + 0x50]
mov byte [esp + 0x90], 9
cmp ecx, eax
je 0x40a02e
push 0xffffffffffffffff
push 0
push eax
call fcn.004033d0
mov byte [esp + 0x90], 5
cmp dword [esp + 0x34], 8
jb 0x40a049
push dword [esp + 0x20]
call fcn.0048fa72
add esp, 4
mov eax, dword [esp + 0x60]
test eax, eax
je 0x40a099
push 1
push 0x4d1cc0
push eax
push 0
lea ecx, [esp + 0x60]
call fcn.0040b860
test eax, eax
je 0x40a099
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x3c]
call fcn.0040a3d0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 0xa
call fcn.0040b530
lea ecx, [esp + 0x20]
mov byte [esp + 0x90], 5
call fcn.004032f0
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x3c]
call fcn.0040a240
lea ecx, [esp + 0x68]
mov byte [esp + 0x90], 0xb
call fcn.00409900
cmp eax, 0xffffffff
je 0x40a116
inc eax
mov dword [esp + 0x34], 7
xor ecx, ecx
mov dword [esp + 0x30], 0
push eax
push ecx
lea eax, [esp + 0x70]
mov word [esp + 0x28], cx
push eax
lea ecx, [esp + 0x2c]
call fcn.004033d0
lea eax, [esp + 0x20]
mov byte [esp + 0x90], 0xc
push eax
lea ecx, [esp + 0x18]
call fcn.0040b470
mov byte [esp + 0x90], 0xb
cmp dword [esp + 0x34], 8
jb 0x40a116
push dword [esp + 0x20]
call fcn.0048fa72
add esp, 4
push dword [esp + 0x10]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x24]
mov ebx, dword [esp + 0x1c]
push esi
push ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call fcn.0040bb40
lea eax, [esp + 0x20]
mov byte [esp + 0x90], 0xd
push eax
mov ecx, edi
call fcn.0040b400
mov edi, dword [esp + 0x20]
test edi, edi
je 0x40a17a
push dword [esp + 0x10]
mov edx, dword [esp + 0x28]
push ecx
mov ecx, edi
call fcn.0040ba90
push edi
call fcn.0048fa72
add esp, 0xc
cmp dword [esp + 0x7c], 8
jb 0x40a18d
push dword [esp + 0x68]
call fcn.0048fa72
add esp, 4
xor eax, eax
mov dword [esp + 0x7c], 7
cmp dword [esp + 0x64], 8
mov dword [esp + 0x78], 0
mov word [esp + 0x68], ax
jb 0x40a1b7
push dword [esp + 0x50]
call fcn.0048fa72
add esp, 4
xor eax, eax
mov dword [esp + 0x64], 7
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
jb 0x40a1e1
push dword [esp + 0x38]
call fcn.0048fa72
add esp, 4
xor eax, eax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
test esi, esi
je 0x40a213
push dword [esp + 0x10]
mov edx, ebx
push ecx
mov ecx, esi
call fcn.0040ba90
push esi
call fcn.0048fa72
add esp, 0xc
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004906bc
mov esp, ebp
pop ebp
ret 4