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

Disassembly:
sub esp, 0x280
mov al, byte [esp + 3]
push ebp
push edi
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], al
call fcn.00401b60
or ecx, 0xffffffff
xor eax, eax
mov edi, str.HighScoresListBox
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.HighScoresListBox
lea ecx, [esp + 0x18]
call fcn.004022a0
mov ecx, dword [0x5532c4]
test ecx, ecx
jne 0x405f73
push 0x7c
call fcn.004fc0e2
add esp, 4
test eax, eax
je 0x405f6a
mov ecx, eax
call fcn.0046bac0
jmp 0x405f6c
xor eax, eax
mov dword [0x5532c4], eax
mov ecx, eax
push 0
push 0x52fb08
push 0x52f740
push 0
lea edx, [esp + 0x20]
push edx
call fcn.0046c550
push eax
call fcn.004fca98
add esp, 0x14
mov ebp, eax
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], ebp
call fcn.00401b60
test ebp, ebp
je 0x406394
push esi
mov ecx, ebp
call fcn.0041bea0
mov esi, dword [0x553360]
test esi, esi
jne 0x405fdf
push 0x38
call fcn.004fc0e2
add esp, 4
test eax, eax
je 0x405fd6
mov ecx, eax
call fcn.0046eeb0
jmp 0x405fd8
xor eax, eax
mov dword [0x553360], eax
mov esi, eax
mov al, byte [esi + 0x20]
add esi, 0x20
mov ecx, esi
mov byte [esp + 0x24], al
call fcn.004063a0
test eax, eax
jge 0x405ff6
xor eax, eax
lea ecx, [eax + eax*2]
shl ecx, 3
push ebx
push ecx
call fcn.004fc0e2
add esp, 4
mov dword [esp + 0x2c], eax
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
push ecx
push esi
lea ecx, [esp + 0x34]
call fcn.004063d0
mov ebx, dword [esp + 0x2c]
cmp ebx, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
je 0x4062f0
mov ecx, ebp
call fcn.0041baf0
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x1c], dl
call fcn.00401b60
push 0xa
lea eax, [esp + 0x8c]
push eax
lea ecx, [esi + 1]
push ecx
call fcn.0051091f
mov eax, dword [ebx + 0x14]
push 0xa
lea edx, [esp + 0x19c]
push edx
push eax
call fcn.0051091f
mov eax, dword [ebx + 0x10]
add esp, 0x18
sub eax, 0
je 0x406196
dec eax
je 0x406117
dec eax
jne 0x40621c
mov ecx, dword [0x553390]
test ecx, ecx
jne 0x4060b9
push 0xc
call fcn.004fc0e2
add esp, 4
test eax, eax
je 0x4060b0
mov ecx, eax
call fcn.0047dc40
jmp 0x4060b2
xor eax, eax
mov dword [0x553390], eax
mov ecx, eax
push 0x52fb04
call fcn.0047dc70
mov cl, byte [esp + 0x13]
mov byte [esp + 0x78], cl
push 0
lea ecx, [esp + 0x7c]
mov ebp, eax
call fcn.00401b60
or ecx, 0xffffffff
xor eax, eax
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
lea ecx, [esp + 0x80]
call fcn.004022a0
mov edx, dword [0x5153c0]
push edx
push 0
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x24]
call fcn.00403390
push 1
lea ecx, [esp + 0x7c]
jmp 0x406213
mov ecx, dword [0x553390]
test ecx, ecx
jne 0x406141
push 0xc
call fcn.004fc0e2
add esp, 4
test eax, eax
je 0x406138
mov ecx, eax
call fcn.0047dc40
jmp 0x40613a
xor eax, eax
mov dword [0x553390], eax
mov ecx, eax
push str.Pilot
call fcn.0047dc70
mov cl, byte [esp + 0x13]
mov byte [esp + 0x38], cl
push 0
lea ecx, [esp + 0x3c]
mov ebp, eax
call fcn.00401b60
or ecx, 0xffffffff
xor eax, eax
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
lea ecx, [esp + 0x40]
call fcn.004022a0
mov edx, dword [0x5153c0]
push edx
push 0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x24]
call fcn.00403390
push 1
lea ecx, [esp + 0x3c]
jmp 0x406213
mov ecx, dword [0x553390]
test ecx, ecx
jne 0x4061c0
push 0xc
call fcn.004fc0e2
add esp, 4
test eax, eax
je 0x4061b7
mov ecx, eax
call fcn.0047dc40
jmp 0x4061b9
xor eax, eax
mov dword [0x553390], eax
mov ecx, eax
push str.Cadet
call fcn.0047dc70
mov cl, byte [esp + 0x13]
mov byte [esp + 0x68], cl
push 0
lea ecx, [esp + 0x6c]
mov ebp, eax
call fcn.00401b60
or ecx, 0xffffffff
xor eax, eax
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
lea ecx, [esp + 0x70]
call fcn.004022a0
mov edx, dword [0x5153c0]
push edx
push 0
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x24]
call fcn.00403390
push 1
lea ecx, [esp + 0x6c]
call fcn.00401b60
mov ebp, dword [esp + 0x14]
mov cl, byte [esp + 0x13]
mov byte [esp + 0x48], cl
push 0
lea ecx, [esp + 0x4c]
call fcn.00401b60
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x88]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea edx, [esp + 0x8c]
push edx
lea ecx, [esp + 0x50]
call fcn.004022a0
lea eax, [esp + 0x48]
push eax
push 0
push esi
mov ecx, ebp
call fcn.0041bed0
push 1
lea ecx, [esp + 0x4c]
call fcn.00401b60
push ebx
push 1
push esi
mov ecx, ebp
call fcn.0041bed0
lea ecx, [esp + 0x18]
push ecx
push 2
push esi
mov ecx, ebp
call fcn.0041bed0
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x5c], dl
call fcn.00401b60
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x18c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea eax, [esp + 0x190]
push eax
lea ecx, [esp + 0x60]
call fcn.004022a0
lea ecx, [esp + 0x58]
push ecx
push 3
push esi
mov ecx, ebp
call fcn.0041bed0
push 1
lea ecx, [esp + 0x5c]
call fcn.00401b60
push 1
lea ecx, [esp + 0x1c]
call fcn.00401b60
mov eax, dword [esp + 0x30]
add ebx, 0x18
cmp ebx, eax
jne 0x406030
mov eax, dword [0x553360]
test eax, eax
pop ebx
jne 0x406318
push 0x38
call fcn.004fc0e2
add esp, 4
test eax, eax
je 0x406311
mov ecx, eax
call fcn.0046eeb0
jmp 0x406313
xor eax, eax
mov dword [0x553360], eax
mov ecx, eax
call fcn.00471c90
test al, al
je 0x40636a
push 1
mov ecx, ebp
call fcn.0041c070
mov ecx, dword [0x553360]
test ecx, ecx
jne 0x406356
push 0x38
call fcn.004fc0e2
add esp, 4
test eax, eax
je 0x40634d
mov ecx, eax
call fcn.0046eeb0
jmp 0x40634f
xor eax, eax
mov dword [0x553360], eax
mov ecx, eax
call fcn.00471d70
push eax
mov ecx, ebp
call fcn.0041c0a0
mov byte [ebp + 0xdc], 0
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
cmp esi, edi
je 0x40638a
push 1
mov ecx, esi
call fcn.00401b60
add esi, 0x18
cmp esi, edi
jne 0x406376
mov esi, dword [esp + 0x28]
push esi
call fcn.004ef70e
add esp, 4
pop esi
pop edi
pop ebp
add esp, 0x280
ret