Function at 0x40a0d0
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x453466
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x468400]
xor eax, esp
mov dword [esp + 0xcc], eax
push ebx
push ebp
push esi
mov eax, dword [0x468400]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov eax, dword [esp + 0xf8]
mov ebp, dword [esp + 0xf0]
push 0xffffffffffffffff
xor esi, esi
push esi
mov dword [esp + 0x30], ecx
push eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x38], edx
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], esi
mov byte [esp + 0x68], 0
call fcn.004043f0
push 1
push 0x45b5ac
lea eax, [esp + 0x60]
mov dword [esp + 0xf0], esi
call fcn.00408820
push esi
push ebp
or eax, 0xffffffff
lea esi, [esp + 0x60]
call fcn.00408730
mov eax, dword [esp + 0x5c]
mov esi, 0x10
cmp dword [esp + 0x70], esi
jae 0x40a178
lea eax, [esp + 0x5c]
push 0x45ac20
push eax
call fcn.00436b9c
mov ebx, eax
add esp, 8
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x40a1dc
cmp dword [ebp + 0x18], esi
jb 0x40a19a
mov ebp, dword [ebp + 4]
jmp 0x40a19d
add ebp, 4
push ebp
lea eax, [esp + 0x78]
push 0x45b5b0
push eax
call fcn.00436790
mov edx, dword [edi + 4]
add esp, 0xc
push esi
push 0
lea ecx, [esp + 0x7c]
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esp + 0x70], esi
jb 0x40a1d5
mov eax, dword [esp + 0x5c]
push eax
call fcn.00419a12
add esp, 4
xor al, al
jmp 0x40a5dd
mov ecx, dword [esp + 0xfc]
push 0
push ecx
push ebx
call fcn.00437470
mov eax, dword [esp + 0x68]
add esp, 0xc
cmp dword [esp + 0x70], esi
jae 0x40a1fd
lea eax, [esp + 0x5c]
push 0x45ac20
push eax
call fcn.00436b9c
mov esi, eax
add esp, 8
test esi, esi
je 0x40a230
push 2
push 0
push esi
call fcn.00437470
add esp, 0xc
push esi
call fcn.00437378
add esp, 4
push esi
call fcn.004375bd
add esp, 4
push ebx
push 1
lea edx, [esp + 0x38]
push 0xc
push edx
call fcn.00437141
lea eax, [eax + eax*2]
add eax, eax
add eax, eax
add esp, 0x10
cmp eax, 0xc
je 0x40a2a3
mov esi, 0x10
cmp dword [ebp + 0x18], esi
jb 0x40a25d
mov ebp, dword [ebp + 4]
jmp 0x40a260
add ebp, 4
push ebp
lea ecx, [esp + 0x78]
push 0x45b5e8
push ecx
call fcn.00436790
mov eax, dword [edi + 4]
add esp, 0xc
push esi
push 0
lea edx, [esp + 0x7c]
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esp + 0x70], esi
jb 0x40a1d5
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00419a12
add esp, 4
xor al, al
jmp 0x40a5dd
cmp dword [esp + 0x30], 0x4454425a
je 0x40a302
mov esi, 0x10
cmp dword [ebp + 0x18], esi
jb 0x40a2bc
mov ebp, dword [ebp + 4]
jmp 0x40a2bf
add ebp, 4
push ebp
lea edx, [esp + 0x78]
push 0x45b5f8
push edx
call fcn.00436790
mov ecx, dword [edi + 4]
add esp, 0xc
push esi
push 0
lea eax, [esp + 0x7c]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esp + 0x70], esi
jb 0x40a1d5
mov edx, dword [esp + 0x5c]
push edx
call fcn.00419a12
add esp, 4
xor al, al
jmp 0x40a5dd
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0xf4]
je 0x40a353
cmp dword [ebp + 0x18], 0x10
jb 0x40a31a
mov ebp, dword [ebp + 4]
jmp 0x40a31d
add ebp, 4
push ebp
lea ecx, [esp + 0x78]
push 0x45b610
push ecx
call fcn.00436790
mov eax, dword [edi + 4]
add esp, 0xc
push 0x10
push 0
lea edx, [esp + 0x7c]
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x58]
call fcn.004037f0
xor al, al
jmp 0x40a5dd
mov eax, dword [esp + 0x38]
add eax, 0x258
push eax
mov dword [esp + 0x24], eax
call fcn.00419a07
mov ecx, dword [esp + 0x24]
add esp, 4
push ecx
mov esi, eax
push 0
push esi
mov dword [esp + 0x28], esi
call fcn.00439a00
mov edx, dword [esp + 0x44]
add esp, 0xc
push edx
mov eax, ebx
push esi
mov ebx, edi
call fcn.00409f90
test al, al
jne 0x40a3ce
push esi
call fcn.00419a12
add esp, 4
cmp dword [ebp + 0x18], 0x10
jb 0x40a3a6
mov ebp, dword [ebp + 4]
jmp 0x40a3a9
add ebp, 4
push ebp
lea eax, [esp + 0x78]
push 0x45b620
push eax
call fcn.00436790
mov edx, dword [edi + 4]
add esp, 0xc
push 0x10
push 0
lea ecx, [esp + 0x7c]
push ecx
push edx
jmp 0x40a33d
mov eax, dword [esp + 0x18]
push eax
call fcn.004375bd
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
mov ebp, dword [sym.imp.USER32.dll_PostMessageA]
add esp, 4
push 0
push 0x67
push ecx
push edx
mov byte [esp + 0x27], 0
mov dword [esp + 0x28], esi
call ebp
lea eax, [esp + 0x3c]
push eax
call fcn.0040dfb0
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0xe8], 1
cmp dword [ecx], 0
je 0x40a506
lea ebx, [esi + 0xc]
push 0x45acd8
push ebx
call fcn.00437a3d
add esp, 8
test eax, eax
je 0x40a4a3
push str.GameLaunch.exe
push ebx
call fcn.00437a3d
add esp, 8
test eax, eax
je 0x40a4a3
mov ebx, dword [esp + 0x1c]
sub esi, ebx
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x20]
fild dword [esp + 0x24]
mov edx, esi
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
test edx, edx
jge 0x40a464
fadd qword [0x45c708]
fdivp st(1)
fmul qword [0x45c700]
call fcn.0043d410
mov ecx, dword [edi + 4]
push eax
mov eax, dword [edi + 8]
push 0x68
push eax
push ecx
call ebp
push esi
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x30]
push edi
mov ecx, ebx
call fcn.0040ac60
test al, al
sete al
mov byte [esp + 0x17], al
test al, al
jne 0x40a506
mov esi, dword [esp + 0x18]
jmp 0x40a4fd
push str.GameLaunch.exe
push ebx
call fcn.00437da0
add esp, 8
test eax, eax
je 0x40a4bc
mov eax, dword [esp + 0x2c]
mov byte [eax], 1
mov eax, dword [esp + 0x50]
mov edx, dword [eax + 4]
lea ebx, [eax + 4]
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
call fcn.0040f920
lea ecx, [esp + 0x3c]
mov ebp, eax
call fcn.0040f960
mov dword [ebx], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
mov ecx, dword [esi + 8]
mov edx, dword [ecx + esi + 0xc]
mov ebp, dword [sym.imp.USER32.dll_PostMessageA]
lea esi, [ecx + esi + 0xc]
lea esi, [edx + esi + 4]
mov dword [esp + 0x18], esi
cmp dword [esi], 0
jne 0x40a417
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push 0
push 0x6a
push eax
push ecx
call ebp
cmp byte [esp + 0x17], 0
jne 0x40a59c
mov edx, dword [esp + 0x50]
mov ebx, dword [edx]
mov esi, dword [esp + 0x3c]
lea esp, [esp]
mov ebp, dword [esp + 0x50]
test esi, esi
je 0x40a53e
cmp esi, dword [esp + 0x3c]
je 0x40a543
call fcn.00436e91
cmp ebx, ebp
je 0x40a59c
test esi, esi
jne 0x40a594
call fcn.00436e91
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x40a55c
call fcn.00436e91
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + 8]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x30]
push edi
mov dword [esp + 0x24], eax
call fcn.0040ac60
test esi, esi
jne 0x40a598
call fcn.00436e91
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x40a590
call fcn.00436e91
mov ebx, dword [ebx]
jmp 0x40a530
mov eax, dword [esi]
jmp 0x40a552
mov eax, dword [esi]
jmp 0x40a586
mov eax, dword [esp + 0x1c]
push eax
call fcn.00419a12
add esp, 4
cmp byte [esp + 0x17], 0
lea esi, [esp + 0x3c]
sete bl
call fcn.0040e1e0
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00419a12
add esp, 4
cmp dword [esp + 0x70], 0x10
jb 0x40a5db
mov edx, dword [esp + 0x5c]
push edx
call fcn.00419a12
add esp, 4
mov al, bl
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.00436724
add esp, 0xdc
ret 0x10