Function at 0x4653d0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x20c
push esi
push edi
call fcn.00445d40
mov ecx, fcn.00476020
call fcn.004d4ff0
push 1
push 2
call fcn.004c72e0
add esp, 8
cmp eax, 0xffffffff
je 0x465404
push 1
push 0x15
call fcn.004c72e0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
test eax, eax
je 0x4654d3
mov edx, eax
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
mov dword [0x64c490], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
mov dword [0x64c49c], ecx
jle 0x46548d
mov al, byte [edx]
cmp al, 0x20
je 0x46543a
cmp al, 9
jne 0x46544a
inc edx
dec ecx
mov dword [0x64c490], edx
mov dword [0x64c49c], ecx
jmp 0x465430
mov al, byte [edx]
cmp al, 0x22
mov eax, 0x4f2704
je 0x46545a
mov eax, 0x4f2700
push eax
push edx
call fcn.004c71f0
add esp, 8
test eax, eax
je 0x46548d
mov edx, dword [0x64c490]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x64c49c]
not ecx
add edx, ecx
sub eax, ecx
mov dword [0x64c490], edx
mov dword [0x64c49c], eax
mov eax, dword [0x51bd80]
xor ecx, ecx
mov dword [esp + 8], eax
call fcn.00465140
mov esi, eax
test esi, esi
je 0x4654d3
lea edx, [esp + 8]
mov ecx, esi
call fcn.00407960
test eax, eax
je 0x4654bf
mov ecx, dword [esp + 8]
xor edx, edx
call fcn.00407760
jmp 0x4654c6
mov ecx, esi
call fcn.00465a60
xor ecx, ecx
call fcn.00465140
mov esi, eax
test esi, esi
jne 0x4654a3
mov ecx, 0x4658f0
call fcn.004d4ff0
xor ecx, ecx
mov dword [0x64c050], ecx
mov dword [0x64c050], 0x14
mov dword [0x64c054], ecx
mov dword [0x64c054], 0x4f24a0
mov dword [0x64c058], ecx
mov dword [0x64c058], 0x64c068
mov dword [0x64c05c], ecx
mov dword [0x64c05c], 0x64c280
mov dword [0x64c060], ecx
mov dword [0x64c060], 0x64c178
call fcn.00465810
mov eax, dword [0x64e4a8]
lea edx, [esp + 0xc]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x465552
mov byte [esp + 0xc], al
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.004c5e20
add esp, 8
test eax, eax
je 0x465568
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.00465950
test eax, eax
mov dword [0x64c48c], eax
jne 0x4655a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, 0x4f2774
call fcn.004d5f90
push 0
push 0xbb8
mov edx, str.patch_rt.mpq
mov ecx, 0x64c178
call fcn.004659b0
mov dword [0x64c488], eax
call fcn.00462bd0
mov ecx, 0x462db0
call fcn.004d4ff0
call fcn.00462e00
test eax, eax
jne 0x4655e8
xor edx, edx
mov ecx, 1
call fcn.00464f30
mov byte [0x64c280], 0
call fcn.00462e00
test eax, eax
jne 0x465643
push eax
push 0x9c4
mov edx, str.Broodat.mpq
lea ecx, [esp + 0x118]
call fcn.004659b0
test eax, eax
mov dword [0x64c170], eax
je 0x465643
lea eax, [esp + 0x110]
push 0x208
push eax
push 0x64c280
call sub.storm.dll_Ordinal_501
push 0x208
push 0x4f2750
push 0x64c280
call sub.storm.dll_Ordinal_503
call fcn.00462d90
lea ecx, [esp + 0xc]
push 0x208
push ecx
push 0x64c280
call sub.storm.dll_Ordinal_503
mov ecx, str.rezDataVersion.txt
call fcn.00465b20
mov eax, dword [0x64c27c]
test eax, eax
je 0x465679
mov ecx, str.rezCDversion.txt
call fcn.00465b20
or dword [0x6b3e30], 7
call fcn.004d3fc0
mov ecx, 0x4d4130
call fcn.004d4ff0
call fcn.0043fab0
call fcn.0043fbc0
mov ecx, 0x43fc10
call fcn.004d4ff0
cmp dword [0x64c498], 1
je 0x465753
mov esi, 0x6b3ec0
mov ecx, dword [esi]
test ecx, ecx
je 0x4656c6
call fcn.004d4210
mov dword [esi], 0
add esi, 4
cmp esi, 0x6b3ed0
jl 0x4656b5
push 0xeb
push str.U:SWarlanginit.cpp
mov edx, 0x464db0
mov ecx, str.font16x
mov dword [0x64c498], 1
call fcn.004d4190
mov edx, 0x464db0
mov ecx, str.font16
push 0xec
push str.U:SWarlanginit.cpp
mov dword [0x6b3ecc], eax
call fcn.004d4190
mov edx, 0x464db0
mov ecx, str.font14
push 0xed
push str.U:SWarlanginit.cpp
mov dword [0x6b3ec8], eax
call fcn.004d4190
mov edx, 0x464db0
mov ecx, str.font10
push 0xee
push str.U:SWarlanginit.cpp
mov dword [0x6b3ec4], eax
call fcn.004d4190
mov dword [0x6b3ec0], eax
mov ecx, 0x4657e0
call fcn.004d4ff0
call fcn.004d30c0
mov ecx, 0x4d3090
call fcn.004d4ff0
call fcn.0043f130
call fcn.004d72a0
mov ecx, 0x6b29a0
call fcn.004da680
call fcn.004142c0
mov ecx, 0x414270
call fcn.004d4ff0
mov edx, 0x4f29f8
mov ecx, str.arrmapdata.dat
call fcn.004464b0
mov edx, 0x64e4c0
mov ecx, str.arrmapdata.tbl
push 0x478
push str.U:SWarlanginit.cpp
push fcn.00445fc0
push 0x41
call fcn.004d6be0
mov ecx, 0x465ac0
mov dword [0x64c16c], eax
call fcn.004d4ff0
pop edi
pop esi
add esp, 0x20c
ret