Function at 0x469090
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x20c
push esi
push edi
call fcn.00447240
mov ecx, fcn.0047ac20
call fcn.004dd9f0
push 1
push 2
call fcn.004cf4e0
add esp, 8
cmp eax, 0xffffffff
je 0x4690c4
push 1
push 0x15
call fcn.004cf4e0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
test eax, eax
je 0x469193
mov edx, eax
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
mov dword [0x6560e0], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
mov dword [0x6560ec], ecx
jle 0x46914d
mov al, byte [edx]
cmp al, 0x20
je 0x4690fa
cmp al, 9
jne 0x46910a
inc edx
dec ecx
mov dword [0x6560e0], edx
mov dword [0x6560ec], ecx
jmp 0x4690f0
mov al, byte [edx]
cmp al, 0x22
mov eax, 0x4fbd64
je 0x46911a
mov eax, 0x4fbd60
push eax
push edx
call fcn.004cf3f0
add esp, 8
test eax, eax
je 0x46914d
mov edx, dword [0x6560e0]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x6560ec]
not ecx
add edx, ecx
sub eax, ecx
mov dword [0x6560e0], edx
mov dword [0x6560ec], eax
mov eax, dword [0x52568c]
xor ecx, ecx
mov dword [esp + 8], eax
call fcn.00468e00
mov esi, eax
test esi, esi
je 0x469193
lea edx, [esp + 8]
mov ecx, esi
call fcn.004080c0
test eax, eax
je 0x46917f
mov ecx, dword [esp + 8]
xor edx, edx
call fcn.00407ec0
jmp 0x469186
mov ecx, esi
call fcn.00469740
xor ecx, ecx
call fcn.00468e00
mov esi, eax
test esi, esi
jne 0x469163
mov ecx, 0x4695c0
call fcn.004dd9f0
xor ecx, ecx
mov dword [0x655ca0], ecx
mov dword [0x655ca0], 0x14
mov dword [0x655ca4], ecx
mov dword [0x655ca4], 0x4fbb00
mov dword [0x655ca8], ecx
mov dword [0x655ca8], 0x655cb8
mov dword [0x655cac], ecx
mov dword [0x655cac], 0x655ed0
mov dword [0x655cb0], ecx
mov dword [0x655cb0], 0x655dc8
call fcn.004694d0
mov eax, dword [0x65810c]
lea edx, [esp + 0xc]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x469212
mov byte [esp + 0xc], al
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.004ce000
add esp, 8
test eax, eax
je 0x469228
mov byte [eax], 0
push 0x104
lea edx, [esp + 0x10]
push str.Stardat.mpq
push edx
call sub.Storm.dll_Ordinal_503
mov edx, 0x7d0
lea ecx, [esp + 0xc]
push 0
push 0
call fcn.00469620
test eax, eax
mov dword [0x6560dc], eax
jne 0x469269
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, 0x4fbdd4
call fcn.004de4e0
push 0
push 0x1b58
mov edx, str.patch_rt.mpq
mov ecx, 0x655dc8
call fcn.00469690
mov dword [0x6560d8], eax
call fcn.004667e0
mov ecx, 0x4669c0
call fcn.004dd9f0
call fcn.00466a20
test eax, eax
jne 0x4692a8
xor edx, edx
mov ecx, 1
call fcn.00468bd0
mov byte [0x655ed0], 0
call fcn.00466a20
test eax, eax
jne 0x469303
push eax
push 0x9c4
mov edx, str.Broodat.mpq
lea ecx, [esp + 0x118]
call fcn.00469690
test eax, eax
mov dword [0x655dc0], eax
je 0x469303
lea eax, [esp + 0x110]
push 0x208
push eax
push 0x655ed0
call sub.Storm.dll_Ordinal_501
push 0x208
push 0x4fbdb0
push 0x655ed0
call sub.Storm.dll_Ordinal_503
call fcn.004669a0
lea ecx, [esp + 0xc]
push 0x208
push ecx
push 0x655ed0
call sub.Storm.dll_Ordinal_503
mov ecx, str.rezDataVersion.txt
call fcn.00469800
mov eax, dword [0x655ecc]
test eax, eax
je 0x469339
mov ecx, str.rezCDversion.txt
call fcn.00469800
or dword [0x6be888], 7
call fcn.004dc8f0
mov ecx, 0x4dca60
call fcn.004dd9f0
call fcn.00440b80
call fcn.00440ca0
mov ecx, 0x440cf0
call fcn.004dd9f0
cmp dword [0x6560e8], 1
je 0x469413
mov esi, 0x6be918
mov ecx, dword [esi]
test ecx, ecx
je 0x469386
call fcn.004dcb70
mov dword [esi], 0
add esi, 4
cmp esi, 0x6be928
jl 0x469375
push 0x128
push str.U:SWarlanginit.cpp
mov edx, 0x468a40
mov ecx, str.font16x
mov dword [0x6560e8], 1
call fcn.004dcae0
mov edx, 0x468a40
mov ecx, str.font16
push 0x129
push str.U:SWarlanginit.cpp
mov dword [0x6be924], eax
call fcn.004dcae0
mov edx, 0x468a40
mov ecx, str.font14
push 0x12a
push str.U:SWarlanginit.cpp
mov dword [0x6be920], eax
call fcn.004dcae0
mov edx, 0x468a40
mov ecx, str.font10
push 0x12b
push str.U:SWarlanginit.cpp
mov dword [0x6be91c], eax
call fcn.004dcae0
mov dword [0x6be918], eax
mov ecx, 0x4694a0
call fcn.004dd9f0
call fcn.004db280
mov ecx, 0x4db250
call fcn.004dd9f0
call fcn.00440170
call fcn.004df970
mov ecx, 0x6bd118
call fcn.004e2df0
call fcn.00414d50
mov ecx, 0x414d00
call fcn.004dd9f0
mov edx, 0x4fc058
mov ecx, str.arrmapdata.dat
call fcn.004479c0
mov edx, 0x658128
mov ecx, str.arrmapdata.tbl
push 0x5fc
push str.U:SWarlanginit.cpp
push fcn.004474c0
push 0x41
call fcn.004df270
mov ecx, 0x4697a0
mov dword [0x655dbc], eax
call fcn.004dd9f0
pop edi
pop esi
add esp, 0x20c
ret