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

Disassembly:
sub esp, 0x10c
mov ecx, dword [0x52be10]
mov eax, ecx
cdq
sub eax, edx
push ebx
push ebp
push esi
mov esi, eax
sar esi, 1
push edi
lea edi, [esi - 0x46]
sub ecx, edi
add ecx, 0x14
lea eax, [edi + 0x5a]
mov dword [esp + 0x24], eax
mov ebp, ecx
lea edx, [esp + 0x58]
mov dword [esp + 0xc8], edx
mov eax, str.None
lea ecx, [esp + 0x3c]
lea edx, [esp + 0xd8]
mov dword [esp + 0x58], eax
mov dword [esp + 0xd8], eax
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xd4], edx
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x90]
lea edx, [esp + 0xf8]
mov dword [esp + 0xcc], eax
mov eax, str.Dummy_control
mov dword [esp + 0xd0], ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x4c], edx
lea edx, [esp + 0xc4]
mov dword [esp + 0xb0], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x60], edx
lea eax, [esp + 0x48]
lea ecx, [esp + 0x30]
lea edx, [esp + 0xb0]
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], edi
lea ebx, [edi - 0x14]
mov dword [esp + 0x3c], str.Cooperative
mov dword [esp + 0x40], 0x4a1888
mov dword [esp + 0x44], str.Manual
mov dword [esp + 0x5c], str.Auto
mov dword [esp + 0xa0], str.Stand
mov dword [esp + 0xa4], str.Crouch
mov dword [esp + 0xa8], str.Jump
mov dword [esp + 0xac], str.W_Jump
mov dword [esp + 0x90], 0x4a18bc
mov dword [esp + 0x94], str.Close
mov dword [esp + 0x98], str.Medium
mov dword [esp + 0x9c], 0x4a18c8
mov dword [esp + 0xdc], 0x49df98
mov dword [esp + 0xe0], 0x49df48
mov dword [esp + 0xe4], 0x49df50
mov dword [esp + 0xe8], 0x49df54
mov dword [esp + 0xec], 0x49dfc8
mov dword [esp + 0xf0], 0x49df58
mov dword [esp + 0xf4], str.Start
mov dword [esp + 0xb4], str.Guard_mode
mov dword [esp + 0xb8], str.Dummy_mode
mov dword [esp + 0xbc], str.Distance
mov dword [esp + 0xc0], str.Button_jam
mov dword [esp + 0xf8], 0x49e01c
mov dword [esp + 0xfc], 0x49e018
mov dword [esp + 0x100], 0x49e014
mov dword [esp + 0x104], 0x49e010
mov dword [esp + 0x108], 0x49e00c
mov dword [esp + 0x10c], 0x49e008
mov dword [esp + 0x110], 0x49e004
mov dword [esp + 0x114], 0x49e000
mov dword [esp + 0x54], str.AI_Level
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
lea eax, [esp + 0x50]
mov dword [esp + 0x70], eax
mov eax, dword [0x52b40c]
lea ecx, [esp + 0x38]
mov dword [esp + 0x74], ecx
mov ecx, dword [eax + 0x11df4]
mov dword [esp + 0x28], ecx
lea ecx, [eax + 0x11df8]
mov dword [esp + 0x84], ecx
lea ecx, [eax + 0x11e0c]
add eax, 0x11e14
mov dword [esp + 0x8c], eax
mov eax, dword [0x52b3ac]
mov dword [esp + 0x88], ecx
mov ecx, dword [eax]
mov eax, dword [ecx + 4]
imul eax, dword [0x52b3b0]
add eax, dword [ecx + 0x18]
mov edx, 1
mov dword [esp + 0x78], 5
mov dword [esp + 0x7c], 2
mov dword [esp + 0x80], edx
je 0x45f528
cmp dword [eax + 0x1c], edx
jne 0x45f528
mov eax, dword [eax + 0x24]
jmp 0x45f52a
xor eax, eax
mov ecx, dword [eax + 4]
push 0x18
push 0
push 0
push ecx
call sub.SDL.dll_SDL_MapRGB
push 0x96
mov ecx, eax
push 0x1e
mov eax, ebp
mov edx, ebx
call fcn.00436b10
mov edx, dword [0x52b3ac]
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
imul eax, dword [0x52b3b0]
add esp, 0x18
add eax, dword [ecx + 0x18]
je 0x45f570
cmp dword [eax + 0x1c], 1
jne 0x45f570
mov eax, dword [eax + 0x24]
jmp 0x45f572
xor eax, eax
mov eax, dword [eax + 4]
push 0x80
push 0x50
push 0x50
push eax
call sub.SDL.dll_SDL_MapRGB
push 0x97
lea ecx, [ebp + 1]
push ecx
lea edx, [ebx - 1]
push 0x1d
push edx
mov ecx, eax
call fcn.00436720
mov eax, dword [0x52b3ac]
mov ecx, dword [eax]
mov eax, dword [ecx + 4]
imul eax, dword [0x52b3b0]
add esp, 0x20
add eax, dword [ecx + 0x18]
je 0x45f5be
cmp dword [eax + 0x1c], 1
jne 0x45f5be
mov eax, dword [eax + 0x24]
jmp 0x45f5c0
xor eax, eax
mov ecx, dword [eax + 4]
push pe_nt_image_headers32
push 0xc0
push 0xc0
push ecx
call sub.SDL.dll_SDL_MapRGB
push 0x96
push ebp
push 0x1e
push ebx
mov ecx, eax
call fcn.00436720
fld1
mov edx, dword [0x52b40c]
mov ebx, dword [edx + 0x80ac]
add esp, 0x20
push 0
push 0
push 0
push 0
push 0
sub esp, 0x10
fst dword [esp + 0xc]
mov eax, str.Training_Menu
fstp dword [esp + 8]
fld dword [0x4a6e84]
fstp dword [esp + 4]
fild dword [esp + 0x3c]
fstp dword [esp]
call fcn.0040f830
fld1
mov eax, dword [0x52b40c]
mov ebx, dword [eax + 0x80ac]
add esp, 0x24
push 0x100
push 0x100
push 0x100
push 0
push 0
sub esp, 0x10
fst dword [esp + 0xc]
dec esi
fstp dword [esp + 8]
mov dword [esp + 0x3c], esi
fld dword [0x4a6e80]
mov eax, str.Training_Menu
fstp dword [esp + 4]
fild dword [esp + 0x3c]
fstp dword [esp]
call fcn.0040f830
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + eax*4 + 0x9c]
mov ecx, dword [esp + eax*4 + 0xa8]
add esp, 0x24
xor ebp, ebp
mov dword [ecx], eax
mov dword [esp + 0x34], edx
test edx, edx
jle 0x45f8e1
mov esi, dword [esp + eax*4 + 0x6c]
inc edi
mov dword [esp + 0x18], edi
fild dword [esp + 0x18]
mov edi, ecx
sub edi, esi
mov dword [esp + 0x1c], 0x3c
fstp dword [esp + 0x2c]
fild dword [esp + 0x20]
mov dword [esp + 0x20], edi
fstp dword [esp + 0x18]
jmp 0x45f6d4
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x52b40c]
mov ebx, dword [edx + 0x80ac]
mov eax, dword [esi]
push 0
inc ecx
push 0
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
push 0
push 0
push 1
fstp dword [esp + 0x28]
sub esp, 0x10
fld1
fst dword [esp + 0xc]
fstp dword [esp + 8]
fld dword [esp + 0x38]
fstp dword [esp + 4]
fld dword [esp + 0x50]
fstp dword [esp]
call fcn.0040f830
fld1
mov eax, dword [edi + esi]
add esp, 0x24
cmp eax, 0xffffffff
je 0x45f894
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + ecx*4 + 0x60]
mov ecx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
push 1
sub esp, 0x10
fst dword [esp + 0xc]
inc ecx
fstp dword [esp + 8]
lea edi, [edx + ebp*4]
fld dword [esp + 0x38]
mov edx, dword [edi]
mov eax, dword [edx + eax*4]
fstp dword [esp + 4]
mov dword [esp + 0x38], ecx
fild dword [esp + 0x38]
mov ecx, dword [0x52b40c]
mov ebx, dword [ecx + 0x80ac]
fstp dword [esp]
call fcn.0040f830
mov eax, dword [0x52b40c]
fild dword [esp + 0x40]
mov ebx, dword [eax + 0x80ac]
add esp, 0x24
cmp dword [eax + 0x11de8], ebp
fstp dword [esp + 0x14]
fld1
mov eax, dword [esi]
jne 0x45f81d
push 0x100
push 0x100
push 0x100
push 0
push 1
sub esp, 0x10
fst dword [esp + 0xc]
fstp dword [esp + 8]
fld dword [esp + 0x38]
fstp dword [esp + 4]
fld dword [esp + 0x3c]
fstp dword [esp]
call fcn.0040f830
fld1
mov edx, dword [esp + 0x44]
mov eax, dword [edx + esi]
mov ecx, dword [edi]
mov edx, dword [0x52b40c]
mov ebx, dword [edx + 0x80ac]
mov eax, dword [ecx + eax*4]
add esp, 0x24
push 0xc8
push 0x100
push 0x100
push 0
push 1
sub esp, 0x10
fst dword [esp + 0xc]
fstp dword [esp + 8]
fld dword [esp + 0x38]
fstp dword [esp + 4]
fild dword [esp + 0x48]
jmp 0x45f8c3
push 0x80
push 0x80
push 0x80
push 0
push 1
sub esp, 0x10
fst dword [esp + 0xc]
fstp dword [esp + 8]
fld dword [esp + 0x38]
fstp dword [esp + 4]
fld dword [esp + 0x3c]
fstp dword [esp]
call fcn.0040f830
fld1
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + esi]
mov eax, dword [0x52b40c]
mov edx, dword [edi]
mov ebx, dword [eax + 0x80ac]
mov eax, dword [edx + ecx*4]
add esp, 0x24
push 0
push 0x100
push 0x100
push 0
push 1
sub esp, 0x10
fst dword [esp + 0xc]
fstp dword [esp + 8]
fld dword [esp + 0x38]
fstp dword [esp + 4]
fild dword [esp + 0x48]
jmp 0x45f8c3
mov ecx, dword [0x52b40c]
mov ebx, dword [ecx + 0x80ac]
mov eax, dword [esi]
push 0x64
push 0x64
push 0x64
push 0
push 1
sub esp, 0x10
fst dword [esp + 0xc]
fstp dword [esp + 8]
fld dword [esp + 0x38]
fstp dword [esp + 4]
fld dword [esp + 0x3c]
fstp dword [esp]
call fcn.0040f830
add dword [esp + 0x40], 0x14
inc ebp
add esp, 0x24
add esi, 4
cmp ebp, dword [esp + 0x34]
jl 0x45f6d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret