Function at 0x54dd30
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa3c
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
push 0x800
push 0
lea eax, [ebp - 0xa3c]
push eax
call fcn.0067d630
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x520
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x51c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x54ded7
imul ecx, dword [ebp - 0xc], 0x4a
add ecx, dword [ebp - 0x20]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 2]
cmp eax, 3
jne 0x54dec8
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x51c]
mov dword [ebp - 8], edx
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx + 0xe]
and eax, 0xffff
movzx ecx, ax
cmp ecx, 2
jle 0x54ddd1
mov dword [ebp - 8], 0
mov edx, 4
imul eax, edx, 5
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax + 0xe]
and edx, 0xffff
movzx eax, dx
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x54ddfa
cmp dword [ebp - 0x30], 1
je 0x54ddfa
jmp 0x54ddfc
jmp 0x54de03
mov dword [ebp - 8], 0
mov ecx, 4
imul edx, ecx, 3
mov eax, dword [ebp - 4]
cmp dword [eax + edx + 0xe], 3
je 0x54de1c
mov dword [ebp - 8], 0
mov ecx, 4
shl ecx, 3
mov edx, dword [ebp - 4]
cmp dword [edx + ecx + 0xe], 0
jg 0x54de40
mov eax, 4
imul ecx, eax, 9
mov edx, dword [ebp - 4]
cmp dword [edx + ecx + 0xe], 0
jle 0x54de47
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 8], 0
je 0x54de9d
imul ecx, dword [ebp - 8], 0x4a
add ecx, dword [ebp - 0x20]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 8]
cmp eax, dword [ebp - 0xc]
je 0x54de75
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 0xa]
cmp edx, dword [ebp - 0xc]
jne 0x54de91
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax + 2]
cmp ecx, 0xc
jne 0x54de8f
mov edx, dword [ebp - 0x18]
movzx eax, byte [edx + 4]
cmp eax, 0x1a
jne 0x54de8f
jmp 0x54de91
jmp 0x54de9d
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 0x46]
mov dword [ebp - 8], edx
jmp 0x54de4d
cmp dword [ebp - 0x34], 0
je 0x54dec8
cmp dword [ebp - 8], 0
jne 0x54dec8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov dword [ebp + eax*4 - 0xa3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 0x46]
mov dword [ebp - 0xc], edx
jmp 0x54dd7d
push 0x15da818
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [ebp - 0x1c], 1
jmp 0x54def4
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x64
jge 0x54df4e
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [0x15daa24]
add edx, 0x310
push edx
push str.text_s_d.txt
lea eax, [ebp - 0x138]
push eax
call fcn.0041e320
add esp, 0x10
push 0x716764
lea ecx, [ebp - 0x138]
push ecx
call fcn.00690360
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x54df4a
mov edx, dword [ebp - 0x10]
push edx
call fcn.0068fac0
add esp, 4
jmp 0x54df4c
jmp 0x54df4e
jmp 0x54deeb
push 0x717e54
lea eax, [ebp - 0x138]
push eax
call fcn.00690360
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x54df7c
push str.NORMAL_n_n
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00485940
add esp, 8
mov dword [ebp - 0x24], 1
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x51c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x54e07c
imul ecx, dword [ebp - 0xc], 0x4a
add ecx, dword [ebp - 0x20]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 2]
cmp eax, 0xc
jne 0x54e06d
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 4]
cmp edx, 0x1a
jne 0x54e06d
mov dword [ebp - 8], 0
jmp 0x54dfd6
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x14]
jge 0x54e06d
mov edx, dword [ebp - 4]
movzx eax, word [edx + 8]
imul ecx, eax, 0x4a
add ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
cmp ecx, dword [ebp + edx*4 - 0xa3c]
jne 0x54e068
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 4]
cmp dword [edx + ecx + 0xe], 0
je 0x54e047
cmp dword [ebp - 0x10], 0
je 0x54e047
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + edx + 0xe]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push str._d.__s_n
mov eax, dword [ebp - 0x10]
push eax
call fcn.00485940
add esp, 0x10
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov dword [ebp + edx*4 - 0xa3c], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
jmp 0x54e06d
jmp 0x54dfcd
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x46]
mov dword [ebp - 0xc], ecx
jmp 0x54df90
cmp dword [ebp - 0x10], 0
je 0x54e0de
lea edx, [ebp - 0x138]
push edx
push str.Ive_create_a_citsez_file_called___s_._Shall_I_make_it_the_citsez_text_for_this_mission_
lea eax, [ebp - 0x23c]
push eax
call fcn.0041e320
add esp, 0xc
push 0x34
push str.Update_CitSez_text
lea ecx, [ebp - 0x23c]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x54e0d2
lea edx, [ebp - 0x138]
push edx
mov eax, dword [0x15daa24]
add eax, 0x414
push eax
call fcn.006b6b40
add esp, 8
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0068fac0
add esp, 4
mov dword [ebp - 8], 0
jmp 0x54e0f0
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jge 0x54e13d
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + ecx*4 - 0xa3c]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [0x15da9ec]
jne 0x54e11a
mov dword [0x15da9ec], 0
mov ecx, dword [ebp - 4]
cmp ecx, dword [0x15da9e8]
jne 0x54e12f
mov dword [0x15da9e8], 0
mov edx, dword [ebp - 4]
push edx
call fcn.00547330
add esp, 4
jmp 0x54e0e7
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push str.Deleted__d_waypoints:__d_civies_and__d_messages.
lea eax, [ebp - 0x23c]
push eax
call fcn.0041e320
add esp, 0x14
push 0x40
push str.Delete_Civvies
lea ecx, [ebp - 0x23c]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esp, ebp
pop ebp
ret