Function at 0x4690a0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x20c
push esi
push edi
call fcn.00447210
mov ecx, fcn.0047ac80
call fcn.004ddb20
push 1
push 2
call fcn.004cf620
add esp, 8
cmp eax, 0xffffffff
je 0x4690d4
push 1
push 0x15
call fcn.004cf620
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
test eax, eax
je 0x4691a3
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 0x46915d
mov al, byte [edx]
cmp al, 0x20
je 0x46910a
cmp al, 9
jne 0x46911a
inc edx
dec ecx
mov dword [0x6560e0], edx
mov dword [0x6560ec], ecx
jmp 0x469100
mov al, byte [edx]
cmp al, 0x22
mov eax, 0x4fbd6c
je 0x46912a
mov eax, 0x4fbd68
push eax
push edx
call fcn.004cf530
add esp, 8
test eax, eax
je 0x46915d
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.00468e10
mov esi, eax
test esi, esi
je 0x4691a3
lea edx, [esp + 8]
mov ecx, esi
call fcn.004080c0
test eax, eax
je 0x46918f
mov ecx, dword [esp + 8]
xor edx, edx
call fcn.00407ec0
jmp 0x469196
mov ecx, esi
call fcn.00469750
xor ecx, ecx
call fcn.00468e10
mov esi, eax
test esi, esi
jne 0x469173
mov ecx, 0x4695d0
call fcn.004ddb20
xor ecx, ecx
mov dword [0x655ca0], ecx
mov dword [0x655ca0], 0x14
mov dword [0x655ca4], ecx
mov dword [0x655ca4], 0x4fbb08
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.004694e0
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 0x469222
mov byte [esp + 0xc], al
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.004ce140
add esp, 8
test eax, eax
je 0x469238
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.00469630
test eax, eax
mov dword [0x6560dc], eax
jne 0x469279
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, 0x4fbddc
call fcn.004de610
push 0
push 0x1b58
mov edx, str.patch_rt.mpq
mov ecx, 0x655dc8
call fcn.004696a0
mov dword [0x6560d8], eax
call fcn.004667f0
mov ecx, 0x4669d0
call fcn.004ddb20
call fcn.00466a30
test eax, eax
jne 0x4692b8
xor edx, edx
mov ecx, 1
call fcn.00468be0
mov byte [0x655ed0], 0
call fcn.00466a30
test eax, eax
jne 0x469313
push eax
push 0x9c4
mov edx, str.Broodat.mpq
lea ecx, [esp + 0x118]
call fcn.004696a0
test eax, eax
mov dword [0x655dc0], eax
je 0x469313
lea eax, [esp + 0x110]
push 0x208
push eax
push 0x655ed0
call sub.Storm.dll_Ordinal_501
push 0x208
push 0x4fbdb8
push 0x655ed0
call sub.Storm.dll_Ordinal_503
call fcn.004669b0
lea ecx, [esp + 0xc]
push 0x208
push ecx
push 0x655ed0
call sub.Storm.dll_Ordinal_503
mov ecx, str.rezDataVersion.txt
call fcn.00469810
mov eax, dword [0x655ecc]
test eax, eax
je 0x469349
mov ecx, str.rezCDversion.txt
call fcn.00469810
or dword [0x6be890], 7
call fcn.004dca30
mov ecx, 0x4dcba0
call fcn.004ddb20
call fcn.00440bd0
call fcn.00440cf0
mov ecx, 0x440d40
call fcn.004ddb20
cmp dword [0x6560e8], 1
je 0x469423
mov esi, 0x6be920
mov ecx, dword [esi]
test ecx, ecx
je 0x469396
call fcn.004dcca0
mov dword [esi], 0
add esi, 4
cmp esi, 0x6be930
jl 0x469385
push 0x128
push str.U:SWarlanginit.cpp
mov edx, 0x468a50
mov ecx, str.font16x
mov dword [0x6560e8], 1
call fcn.004dcc20
mov edx, 0x468a50
mov ecx, str.font16
push 0x129
push str.U:SWarlanginit.cpp
mov dword [0x6be92c], eax
call fcn.004dcc20
mov edx, 0x468a50
mov ecx, str.font14
push 0x12a
push str.U:SWarlanginit.cpp
mov dword [0x6be928], eax
call fcn.004dcc20
mov edx, 0x468a50
mov ecx, str.font10
push 0x12b
push str.U:SWarlanginit.cpp
mov dword [0x6be924], eax
call fcn.004dcc20
mov dword [0x6be920], eax
mov ecx, 0x4694b0
call fcn.004ddb20
call fcn.004db3c0
mov ecx, 0x4db390
call fcn.004ddb20
call fcn.004401c0
call fcn.004dfaa0
mov ecx, 0x6bd120
call fcn.004e2f20
call fcn.00414d70
mov ecx, 0x414d20
call fcn.004ddb20
mov edx, 0x4fc060
mov ecx, str.arrmapdata.dat
call fcn.00447990
mov edx, 0x658128
mov ecx, str.arrmapdata.tbl
push 0x5fc
push str.U:SWarlanginit.cpp
push fcn.00447490
push 0x41
call fcn.004df3a0
mov ecx, 0x4697b0
mov dword [0x655dbc], eax
call fcn.004ddb20
pop edi
pop esi
add esp, 0x20c
ret