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

Disassembly:
sub esp, 0x170
mov eax, dword [esp + 0x174]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0x4faf30
push eax
mov dword [esp + 0x2c], ebp
call dword [0x4f01f0]
mov edi, eax
add esp, 8
test edi, edi
je 0x4549e1
mov ebx, dword [0x4f0224]
push edi
lea eax, [ebp + 0x1249]
push 1
push 4
push eax
mov dword [esp + 0x30], eax
call ebx
mov eax, dword [ebp + 0x12aa]
lea esi, [ebp + 0x124e]
add esp, 0x10
mov dword [esp + 0x28], esi
test eax, eax
je 0x45498a
push edi
push 1
push 4
push esi
call ebx
push edi
push 1
lea ecx, [esi + 4]
push 4
push ecx
call ebx
push edi
push 1
lea edx, [esi + 8]
push 4
push edx
call ebx
mov al, byte [esi + 0x19]
add esp, 0x30
mov byte [esp + 0x39], al
mov cl, byte [esi + 0x19]
xor eax, eax
test cl, cl
jle 0x454880
lea edx, [esp + 0x3a]
lea ecx, [esi + 0x1a]
mov bp, word [ecx]
inc eax
mov word [edx], bp
add ecx, 2
movsx ebp, byte [esi + 0x19]
add edx, 2
cmp eax, ebp
jl 0x45486b
mov ecx, dword [esi + 0x15]
lea eax, [esi + 0x50]
mov dword [esp + 0x35], ecx
mov edx, dword [esi + 0x4c]
mov dword [esp + 0x6c], edx
mov ecx, dword [eax]
mov dword [esp + 0x70], ecx
push edi
mov edx, dword [eax + 4]
push 1
mov dword [esp + 0x7c], edx
lea ecx, [esp + 0x41]
mov eax, dword [eax + 8]
push 1
push ecx
mov dword [esp + 0x88], eax
call ebx
mov al, byte [esp + 0x49]
add esp, 0x10
xor ebp, ebp
test al, al
jle 0x4548ed
lea edx, [esp + 0x3a]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
push edi
push 1
push 2
push eax
call ebx
mov ecx, dword [esp + 0x20]
add esp, 0x10
add ecx, 2
inc ebp
mov dword [esp + 0x10], ecx
movsx ecx, byte [esp + 0x39]
cmp ebp, ecx
jl 0x4548c9
push edi
push 1
lea edx, [esp + 0x3d]
push 4
push edx
call ebx
push edi
push 1
lea eax, [esp + 0x84]
push 4
push eax
call ebx
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x98]
mov dword [esp + 0x34], ecx
push edi
push 1
lea ecx, [esp + 0x3c]
push 4
push ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
call ebx
push edi
push 1
lea edx, [esp + 0x50]
push 4
push edx
call ebx
add esp, 0x40
lea eax, [esp + 0x1c]
push edi
push 1
push 4
push eax
call ebx
push edi
push 1
lea ecx, [esi + 0x60]
push 4
push ecx
call ebx
push edi
push 1
lea edx, [esi + 0x64]
push 4
push edx
call ebx
push edi
push 1
lea eax, [esi + 0x68]
push 4
push eax
call ebx
mov esi, dword [esi + 0x5c]
add esp, 0x40
mov eax, dword [esi + 0x5c]
test eax, eax
jne 0x454833
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
push edi
call dword [0x4f01e8]
mov ecx, dword [esp + 0x188]
mov edi, dword [0x4f0138]
add esp, 4
lea edx, [esp + 0x7c]
push ecx
push edx
call edi
lea eax, [esp + 0x7c]
push 0x4f9a88
push eax
call dword [0x4f021c]
add esp, 8
test eax, eax
je 0x4549c8
push str..txt
push eax
call edi
lea ecx, [esp + 0x7c]
push 0x503990
push ecx
call dword [0x4f01f0]
mov edi, eax
add esp, 8
test edi, edi
jne 0x454a0b
add ebp, 4
push str.PlayerCommandSequence_Save__:_Error_occurs.
push ebp
mov dword [0x8210d4], 1
call fcn.004331c0
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x170
ret 4
mov edx, dword [esp + 0x20]
mov ebx, dword [0x4f01ec]
mov eax, dword [edx]
push eax
push str.nRandomSeed_d_n_n
push edi
call ebx
mov eax, dword [esi + 0x5c]
add esp, 0xc
test eax, eax
je 0x454b7c
mov ecx, dword [esi]
push ecx
push str.nID_d_n
push edi
call ebx
mov edx, dword [esi + 4]
push edx
push str.nTick_d_n
push edi
call ebx
mov eax, dword [esi + 8]
push eax
push str.idPlayer_d_n
push edi
call ebx
mov cl, byte [esi + 0x19]
add esp, 0x24
mov byte [esp + 0x39], cl
mov cl, byte [esi + 0x19]
xor eax, eax
test cl, cl
jle 0x454a80
lea edx, [esp + 0x3a]
lea ecx, [esi + 0x1a]
mov bp, word [ecx]
inc eax
mov word [edx], bp
add ecx, 2
movsx ebp, byte [esi + 0x19]
add edx, 2
cmp eax, ebp
jl 0x454a6b
mov edx, dword [esi + 0x15]
lea ecx, [esi + 0x50]
mov dword [esp + 0x35], edx
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x6c], eax
mov edx, dword [ecx]
mov dword [esp + 0x70], edx
movsx edx, byte [esp + 0x39]
mov eax, dword [ecx + 4]
push edx
mov dword [esp + 0x78], eax
push str.nSelected_d_n
mov ecx, dword [ecx + 8]
push edi
mov dword [esp + 0x84], ecx
call ebx
movsx eax, byte [esp + 0x45]
add esp, 0xc
cmp eax, 0x4000000
jne 0x454af8
lea ecx, [esp + 0x3a]
xor ebp, ebp
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
movsx eax, word [edx]
push eax
push ebp
push str.nUnitIDSrc__d__d_n
push edi
call ebx
mov ecx, dword [esp + 0x20]
add esp, 0x10
add ecx, 2
inc ebp
mov dword [esp + 0x10], ecx
movsx ecx, byte [esp + 0x39]
cmp ebp, ecx
jl 0x454acf
mov edx, dword [esp + 0x35]
push edx
call fcn.004571c0
push eax
push str.dwCommand_s_n
push edi
call ebx
mov eax, dword [esp + 0x7c]
push eax
push str.nUnitIDTarget_d_n
push edi
call ebx
fld dword [esp + 0x94]
add esp, 0x14
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
fstp qword [esp]
fld dword [esp + 0x7c]
sub esp, 8
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
fstp qword [esp]
fld dword [esp + 0x80]
sub esp, 8
fstp qword [esp]
push str.vecTarget__f__f__f__n
push edi
call ebx
mov ecx, dword [esi + 0x68]
push ecx
push str.nRandomCount_d_n
push edi
call ebx
mov esi, dword [esi + 0x5c]
add esp, 0x2c
mov eax, dword [esi + 0x5c]
test eax, eax
jne 0x454a2e
push edi
call dword [0x4f01e8]
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x170
ret 4