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

Disassembly:
push 0xffffffffffffffff
push 0x40cdf7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x474
mov al, byte [esp + 3]
push ebx
push ebp
push esi
xor esi, esi
push edi
push esi
lea ecx, [esp + 0x48]
mov byte [esp + 0x48], al
call fcn.00401a90
mov edi, 0x41012c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x41012c
lea ecx, [esp + 0x4c]
call fcn.00401ae0
mov cl, byte [esp + 0x13]
push esi
mov byte [esp + 0x28], cl
lea ecx, [esp + 0x28]
mov dword [esp + 0x490], esi
call fcn.00401a90
mov dl, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x490], 1
mov byte [esp + 0x38], dl
call fcn.00401a90
mov al, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x490], 2
mov byte [esp + 0x18], al
call fcn.00401a90
mov edi, 0x410ec0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x410ec0
lea ecx, [esp + 0x1c]
call fcn.00401ae0
mov cl, byte [esp + 0x13]
push esi
mov byte [esp + 0x5c], cl
lea ecx, [esp + 0x5c]
mov byte [esp + 0x490], 3
call fcn.00401a90
mov edi, 0x410ec0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x410ec0
lea ecx, [esp + 0x60]
call fcn.00401ae0
mov edx, dword [0x40e104]
lea eax, [esp + 0x44]
push edx
push esi
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x498], 4
call fcn.00401890
mov edx, eax
or ecx, 0xffffffff
mov edi, str..gtx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str..gtx
mov ecx, edx
call fcn.004017d0
mov eax, dword [eax + 4]
cmp eax, esi
jne 0x40155c
mov eax, 0x40e100
lea ecx, [esp + 0x6c]
push ecx
push eax
call fcn.00405176
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
jne 0x4015eb
push str.Gtx_Files_Not_Found._n
call fcn.004048e8
push str.pause
call fcn.004054cf
add esp, 8
lea ecx, [esp + 0x58]
mov byte [esp + 0x48c], 3
push 1
call fcn.00401a90
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x490], 2
call fcn.00401a90
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x490], 1
call fcn.00401a90
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x490], 0
call fcn.00401a90
push 1
lea ecx, [esp + 0x48]
mov dword [esp + 0x490], ebx
call fcn.00401a90
jmp 0x401775
cmp dword [esp + 0x6c], 0x10
je 0x4016a2
lea edx, [esp + 0x284]
lea eax, [esp + 0x184]
push edx
lea ecx, [esp + 0x388]
push eax
lea edx, [esp + 0x5c]
push ecx
lea eax, [esp + 0x8c]
push edx
push eax
call fcn.00405388
lea edi, [esp + 0x198]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00401ba0
test al, al
je 0x40166b
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x184]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00401b80
mov al, byte [esp + 0x14]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x78], esp
push 0
mov ecx, esi
mov byte [esi], al
call fcn.00401a90
mov ecx, dword [0x40e104]
lea edx, [esp + 0x24]
push ecx
push 0
push edx
mov ecx, esi
call fcn.00401890
call section..text
add esp, 0x10
xor esi, esi
lea eax, [esp + 0x6c]
push eax
push ebx
call fcn.00405240
add esp, 8
test eax, eax
je 0x4015eb
push ebx
call fcn.00405305
push str.pause
call fcn.004054cf
add esp, 8
lea ecx, [esp + 0x58]
mov byte [esp + 0x48c], 3
push 1
call fcn.00401a90
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x490], 2
call fcn.00401a90
mov ecx, dword [esp + 0x38]
cmp ecx, esi
je 0x401715
mov al, byte [ecx - 1]
test al, al
je 0x40170b
cmp al, 0xff
je 0x40170b
dec al
mov byte [ecx - 1], al
jmp 0x401715
dec ecx
push ecx
call fcn.004021f0
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x38], esi
cmp ecx, esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
je 0x401745
mov al, byte [ecx - 1]
test al, al
je 0x40173b
cmp al, 0xff
je 0x40173b
dec al
mov byte [ecx - 1], al
jmp 0x401745
dec ecx
push ecx
call fcn.004021f0
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x28], esi
cmp ecx, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
je 0x401775
mov al, byte [ecx - 1]
test al, al
je 0x40176b
cmp al, 0xff
je 0x40176b
dec al
mov byte [ecx - 1], al
jmp 0x401775
dec ecx
push ecx
call fcn.004021f0
add esp, 4
mov ecx, dword [esp + 0x484]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x480
ret