Function at 0x428530
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x110
call fcn.00462cc0
push 0x478bd0
call fcn.00488930
push 1
push 2
call fcn.0047ceaf
add esp, 0xc
cmp eax, 0xffffffff
je 0x428567
push 1
push 0x15
call fcn.0047ceaf
add esp, 8
cmp eax, 0xffffffff
jne 0x428574
push str.signal:1
call fcn.00488ae0
add esp, 4
push ebx
push esi
push edi
call fcn.0048b6d0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
xor ebx, ebx
cmp eax, ebx
je 0x428659
mov edx, eax
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
mov dword [0x4b3684], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebx
mov dword [0x4b3ac0], ecx
jle 0x428607
mov al, byte [edx]
cmp al, 0x20
je 0x4285b4
cmp al, 9
jne 0x4285c4
inc edx
dec ecx
mov dword [0x4b3684], edx
mov dword [0x4b3ac0], ecx
jmp 0x4285aa
mov al, byte [edx]
cmp al, 0x22
mov eax, 0x49dae8
je 0x4285d4
mov eax, 0x49dae4
push eax
push edx
call fcn.0047ce0b
add esp, 8
test eax, eax
je 0x428607
mov edx, dword [0x4b3684]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x4b3ac0]
not ecx
add edx, ecx
sub eax, ecx
mov dword [0x4b3684], edx
mov dword [0x4b3ac0], eax
mov eax, dword [0x4ad98c]
push ebx
mov dword [esp + 0x10], eax
call fcn.00428470
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x428659
lea ecx, [esp + 0xc]
push ecx
push esi
call fcn.00416250
add esp, 8
test eax, eax
je 0x428641
mov edx, dword [esp + 0xc]
push ebx
push edx
call fcn.00415ec0
add esp, 8
jmp 0x42864a
push esi
call fcn.004289e0
add esp, 4
push ebx
call fcn.00428470
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x42861f
push 0x428c10
call fcn.00488930
xor eax, eax
add esp, 4
mov dword [0x4b3668], eax
mov dword [0x4b3668], 0x14
mov dword [0x4b366c], eax
mov dword [0x4b366c], 0x49d93c
mov dword [0x4b3670], eax
mov dword [0x4b3670], 0x4b3688
mov dword [0x4b3674], eax
mov dword [0x4b3674], 0x4b3894
mov dword [0x4b3678], eax
mov dword [0x4b3678], 0x4b378c
call fcn.00428ff0
mov edx, dword [0x4ce7bc]
lea ecx, [esp + 0x18]
push 0x104
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4286d7
mov byte [esp + 0x18], bl
lea eax, [esp + 0x18]
push 0x5c
push eax
call fcn.0047c8d0
add esp, 8
cmp eax, ebx
je 0x4286ec
mov byte [eax], bl
lea ecx, [esp + 0x18]
push closesocket
push ecx
push 0x4b3894
call sub.Storm.dll_Ordinal_501
push 0x104
push str.War2Dat.mpq
push 0x4b3894
call sub.Storm.dll_Ordinal_503
push ebx
push ebx
push 0x7d0
push 0x4b3894
call fcn.00428d30
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x10
cmp eax, ebx
mov dword [0x4b3890], eax
jne 0x428747
call esi
push eax
push 0x49dbc0
call fcn.0048b5c0
add esp, 8
push ebx
push 0xbb8
push str.War2Patch.mpq
push 0x4b378c
call fcn.00428c60
mov dword [0x4b3a9c], eax
call fcn.00472780
push 0x472940
call fcn.00488930
add esp, 0x14
call fcn.004729a0
test eax, eax
jne 0x428787
push ebx
push 1
call fcn.00428db0
add esp, 8
cmp dword [0x4b3680], ebx
jne 0x4287a8
call fcn.004729a0
test eax, eax
jne 0x4287a8
call esi
push eax
push 0x49dba4
call fcn.004ee65d
add esp, 8
push str.rezDataVersion.txt
call fcn.004290d0
add esp, 4
test eax, eax
jne 0x4287c6
push str.invalid_data_file
call fcn.00488ae0
add esp, 4
call fcn.00409e20
push 0x409e80
call fcn.00488930
call fcn.00409d50
mov edi, dword [0x4d6b00]
mov byte [0x4acea0], 1
or edi, 0xf
mov dword [0x4d6b00], edi
call fcn.00489f20
push 0x48a170
call fcn.00488930
call fcn.0041c530
push 0x3a8
push str.C:war2bneLANGSourceINIT.cpp
lea edx, [esp + 0x20]
push 0x4ae844
push edx
push str.ArtTitle_Rel_BNE.pcx
call fcn.00462fa0
mov eax, dword [esp + 0x30]
add esp, 0x1c
push ebx
push 0x3a9
push str.C:war2bneLANGSourceINIT.cpp
push eax
call sub.Storm.dll_Ordinal_403
push 0x3ac
push str.C:war2bneLANGSourceINIT.cpp
push ebx
push 0x4d6560
push str.Arth_arrow.cur
call fcn.00463770
push 0x3ad
push str.C:war2bneLANGSourceINIT.cpp
push ebx
push 0x4d6550
push str.Artwatch.cur
call fcn.00463770
push 0x3b9
push str.C:war2bneLANGSourceINIT.cpp
push str.Art_font6.fnt
call fcn.004635e0
push 0x3ba
push str.C:war2bneLANGSourceINIT.cpp
push str.Art_font10x.fnt
mov dword [0x4d4fa8], eax
call fcn.004635e0
add esp, 0x40
mov dword [0x4d4fe0], eax
push 0x3bb
push str.C:war2bneLANGSourceINIT.cpp
push str.Art_font12x.fnt
call fcn.004635e0
push 0x428b20
mov dword [0x4d4f98], eax
call fcn.00488930
call fcn.00486420
mov eax, dword [0x4d6560]
mov ecx, dword [0x4d6564]
mov edx, dword [0x4d6568]
mov dword [0x4d6570], eax
neg eax
mov word [0x4d48aa], ax
mov ax, word [0x4d6562]
mov dword [0x4d6574], ecx
mov word [0x4d48ae], cx
mov cx, word [0x4d6566]
push 2
neg ax
mov dword [0x4d6578], edx
mov byte [0x4d48a8], bl
mov word [0x4d48ac], ax
mov word [0x4d48b0], cx
mov dword [0x4d48b4], 0x4d6564
mov dword [0x4d48b8], 0x48aa20
mov byte [0x4d48a9], bl
call fcn.00405990
mov ecx, 0x100
mov esi, 0x4ae844
mov edi, 0x4d5ca8
rep movsd dword es:[edi], dword [esi]
push 0x4ae844
push 0x100
push ebx
call fcn.00488f00
call fcn.00437030
call fcn.00417f30
push fcn.0045b1d0
call fcn.00488930
call fcn.0045cf50
call fcn.00409d50
mov esi, dword [0x4a5550]
push str.rezunitdato.dat
push 0x4a53d0
mov word [0x4b3bec], 1
mov byte [0x4b3ae8], bl
mov dword [0x4a5550], ebx
call fcn.00420750
push 0x4a53d0
mov dword [0x4a5550], esi
call fcn.004207d0
push str.rezunitdata.dat
push 0x4a53d0
call fcn.00420750
add esp, 0x38
pop edi
pop esi
pop ebx
add esp, 0x110
ret