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

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x38]
lea ecx, [esp + 0x54]
mov dword [esp + 0xc0], eax
lea eax, [esp + 0x8c]
mov dword [esp + 0xcc], eax
lea edx, [esp + 0x9c]
lea eax, [esp + 0xf4]
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], edx
mov dword [esp + 0x48], eax
lea ecx, [esp + 0xd4]
lea edx, [esp + 0x38]
lea eax, [esp + 0x44]
mov dword [esp + 0xd0], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x60], eax
lea ecx, [esp + 0x38]
lea edx, [esp + 0xc0]
lea eax, [esp + 0x4c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x6c], eax
mov eax, dword [0x4b5b4c]
lea ecx, [esp + 0x28]
lea edx, [esp + 0xac]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
lea ecx, [esp + 0x34]
lea edx, [eax + 0xc2dc]
mov dword [esp + 0x38], str.Cooperative
mov dword [esp + 0x3c], 0x4a7ad8
mov dword [esp + 0x40], str.Manual
mov dword [esp + 0x54], 0x4a7af4
mov dword [esp + 0x58], str.Auto
mov dword [esp + 0x9c], str.Stand
mov dword [esp + 0xa0], 0x4a7b24
mov dword [esp + 0xa4], 0x4a7b34
mov dword [esp + 0xa8], str.W_Jump
mov dword [esp + 0x8c], 0x4a7b50
mov dword [esp + 0x90], str.Close
mov dword [esp + 0x94], str.Medium
mov dword [esp + 0x98], 0x4a7b78
mov dword [esp + 0xd4], str.None
mov dword [esp + 0xd8], 0x4a7b90
mov dword [esp + 0xdc], 0x4a7b98
mov dword [esp + 0xe0], 0x4a7ba0
mov dword [esp + 0xe4], 0x4a7ba8
mov dword [esp + 0xe8], 0x4a7bb0
mov dword [esp + 0xec], 0x4a7bb8
mov dword [esp + 0xf0], 0x4a7bc4
mov dword [esp + 0xac], 0x4a7bdc
mov dword [esp + 0xb0], str.Guard_mode
mov dword [esp + 0xb4], str.Dummy_mode
mov dword [esp + 0xb8], str.Distance
mov dword [esp + 0xbc], str.Button_jam
mov dword [esp + 0xf4], 0x4a7c50
mov dword [esp + 0xf8], 0x4a7c58
mov dword [esp + 0xfc], 0x4a7c60
mov dword [esp + 0x100], 0x4a7c68
mov dword [esp + 0x104], 0x4a7c70
mov dword [esp + 0x108], 0x4a7c78
mov dword [esp + 0x10c], 0x4a7c80
mov dword [esp + 0x110], 0x4a7c88
mov dword [esp + 0x4c], 0x4a7c9c
mov dword [esp + 0x50], str.AI_Level
mov dword [esp + 0x34], str.Dummy_control
mov dword [esp + 0x70], ecx
mov ecx, dword [eax + 0xc2d8]
mov dword [esp + 0x80], edx
lea edx, [eax + 0xc2f0]
add eax, 0xc2f8
mov dword [esp + 0x74], 5
mov dword [esp + 0x78], 2
mov dword [esp + 0x7c], 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], eax
mov eax, dword [esp + ecx*4 + 0x80]
mov edx, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [sym.imp.alleg40.dll_Ordinal_36]
mov ecx, dword [eax]
mov eax, 0x14
shl edx, cl
mov ecx, dword [sym.imp.alleg40.dll_Ordinal_40]
mov ecx, dword [ecx]
shl eax, cl
mov ecx, dword [sym.imp.alleg40.dll_Ordinal_44]
mov ecx, dword [ecx]
or edx, eax
mov eax, 0xa
shl eax, cl
or edx, eax
push edx
push 0x97
push 0xf1
push 0x1d
push 0x4f
call fcn.004892b0
mov eax, dword [sym.imp.alleg40.dll_Ordinal_36]
mov edx, 0x1e
mov ecx, dword [eax]
mov eax, 0x30
shl edx, cl
mov ecx, dword [sym.imp.alleg40.dll_Ordinal_40]
mov ecx, dword [ecx]
shl eax, cl
mov ecx, dword [sym.imp.alleg40.dll_Ordinal_44]
mov ecx, dword [ecx]
or edx, eax
mov eax, 0x18
shl eax, cl
or edx, eax
push edx
push 0x96
push pe_nt_image_headers32
push 0x1e
push 0x50
call fcn.004892b0
mov eax, dword [sym.imp.alleg40.dll_Ordinal_36]
mov edx, 3
mov ecx, dword [eax]
xor eax, eax
shl edx, cl
mov ecx, dword [sym.imp.alleg40.dll_Ordinal_40]
mov ecx, dword [ecx]
shl eax, cl
mov ecx, dword [sym.imp.alleg40.dll_Ordinal_44]
mov ecx, dword [ecx]
or edx, eax
xor eax, eax
shl eax, cl
or edx, eax
push edx
push 0x96
push pe_nt_image_headers32
push 0x1e
push 0x50
call fcn.00489860
mov ecx, dword [sym.imp.alleg40.dll_Ordinal_40]
mov edx, dword [sym.imp.alleg40.dll_Ordinal_36]
mov esi, 0x1f
mov ebx, 0x1f
mov ebp, dword [ecx]
mov eax, dword [edx]
mov edx, 0x3f
mov ecx, ebp
shl edx, cl
mov ecx, dword [sym.imp.alleg40.dll_Ordinal_44]
mov edi, 0xc
mov ecx, dword [ecx]
mov dword [esp + 0x50], ecx
shl esi, cl
mov ecx, eax
shl ebx, cl
mov ecx, dword [esp + 0x50]
or ebx, esi
or ebx, edx
shl edi, cl
mov ecx, 0x19
push 0
mov dword [esp + 0x54], ecx
mov ecx, ebp
mov ebp, dword [esp + 0x54]
push 0x29
shl ebp, cl
mov ecx, eax
push 0xa0
or edi, ebp
mov ebp, 0xc
shl ebp, cl
or edi, ebp
mov ebp, 0x19
mov dword [esp + 0x74], edi
xor edi, edi
shl edi, cl
shl ebp, cl
or edi, esi
or ebp, esi
or edi, edx
or ebp, edx
mov edx, dword [0x4b5b4c]
mov eax, dword [edx + 0x5cd8]
push eax
push 0x4a7ce4
call fcn.0041b080
mov eax, dword [sym.imp.alleg40.dll_Ordinal_36]
mov edx, 0x1f
add esp, 0x50
mov ecx, dword [eax]
mov eax, 0x3f
shl edx, cl
mov ecx, dword [sym.imp.alleg40.dll_Ordinal_40]
mov ecx, dword [ecx]
shl eax, cl
mov ecx, dword [sym.imp.alleg40.dll_Ordinal_44]
mov ecx, dword [ecx]
or edx, eax
mov eax, 0x1f
shl eax, cl
or edx, eax
push edx
mov edx, dword [0x4b5b4c]
push 0x28
push 0x9f
mov eax, dword [edx + 0x5cd8]
push eax
push str.Training_Menu
call fcn.0041b080
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
add esp, 0x14
mov dword [esp + 0x18], 0
mov ecx, dword [esp + eax*4 + 0x74]
mov dword [edx], eax
test ecx, ecx
mov dword [esp + 0x30], ecx
jle 0x433d19
mov esi, dword [esp + eax*4 + 0x68]
mov dword [esp + 0x10], 0x3c
sub edx, esi
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [0x4b5b4c]
push 0
lea eax, [ecx + 1]
mov ecx, dword [esi]
push eax
mov eax, dword [edx + 0x5cd8]
push 0x5b
push eax
push ecx
call fcn.0041b020
mov eax, dword [esp + 0x34]
add esp, 0x14
test eax, eax
je 0x433cd1
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + esi]
cmp eax, 0xffffffff
je 0x433cd1
mov ecx, dword [esp + 0x24]
push 0
mov edx, dword [esp + ecx*4 + 0x60]
mov ecx, dword [esp + 0x1c]
lea ecx, [edx + ecx*4]
mov edx, dword [esp + 0x14]
inc edx
mov dword [esp + 0x18], ecx
mov ecx, dword [ecx]
push edx
mov edx, dword [0x4b5b4c]
push 0xb5
mov edx, dword [edx + 0x5cd8]
push edx
mov edx, dword [ecx + eax*4]
push edx
call fcn.0041b020
mov eax, dword [0x4b5b4c]
mov ecx, dword [esp + 0x2c]
add esp, 0x14
cmp dword [eax + 0xc2cc], ecx
jne 0x433c52
mov edx, dword [esp + 0x10]
mov eax, dword [eax + 0x5cd8]
mov ecx, dword [esi]
push ebx
push edx
push 0x5a
push eax
push ecx
call fcn.0041b020
mov eax, dword [0x4b5b4c]
mov edx, dword [esp + 0x24]
push ebp
push edx
mov ecx, dword [eax + 0x5cd8]
mov edx, dword [esp + 0x38]
push 0xb4
push ecx
mov ecx, dword [esp + 0x38]
mov eax, dword [edx + esi]
mov edx, dword [ecx]
mov eax, dword [edx + eax*4]
push eax
call fcn.0041b020
add esp, 0x28
jmp 0x433cf6
mov eax, dword [sym.imp.alleg40.dll_Ordinal_36]
mov edx, 0x10
mov ecx, dword [eax]
mov eax, 0x20
shl edx, cl
mov ecx, dword [sym.imp.alleg40.dll_Ordinal_40]
mov ecx, dword [ecx]
shl eax, cl
mov ecx, dword [sym.imp.alleg40.dll_Ordinal_44]
mov ecx, dword [ecx]
or edx, eax
mov eax, 0x10
shl eax, cl
or edx, eax
mov eax, dword [0x4b5b4c]
push edx
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + 0x5cd8]
push edx
mov edx, dword [esi]
push 0x5a
push ecx
push edx
call fcn.0041b020
mov ecx, dword [0x4b5b4c]
mov eax, dword [esp + 0x24]
push edi
push eax
mov edx, dword [ecx + 0x5cd8]
mov eax, dword [esp + 0x38]
push 0xb4
push edx
mov edx, dword [esp + 0x38]
mov ecx, dword [eax + esi]
mov eax, dword [edx]
mov ecx, dword [eax + ecx*4]
push ecx
call fcn.0041b020
add esp, 0x28
jmp 0x433cf6
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
mov ecx, dword [0x4b5b4c]
inc eax
push edx
push eax
mov edx, dword [ecx + 0x5cd8]
mov eax, dword [esi]
push 0x5a
push edx
push eax
call fcn.0041b020
add esp, 0x14
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add ecx, 0x14
inc eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x30]
add esi, 4
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x433b7a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret