Function at 0x407054
Capabilities:
Accept command line arguments

Disassembly:
mov dword [esp - 4], esi
cmp dword [esp - 0x20], ecx
jne 0x407066
mov dword [0x8310fd], edi
jmp 0x407081
mov word [0x8310ad], 0x1eb0
mov dword [0x8310d0], ebx
mov dword [0x83106d], esi
xchg dword [0x8310e3], edi
lea esi, [0x8310fb]
add dword [esi + 0x1c], ebx
mov dword [0x831058], eax
mov eax, ebp
add dword [0x8449a8], eax
mov esi, esp
add dword [0x8449a4], esi
mov esi, 8
add dword [0x8449a4], 4
cmp dh, byte [esp - 0x28]
je 0x4070bf
xchg dword [0x831056], esi
mov byte [0x8310f1], 0xfb
mov dword [esp - 4], edx
mov dword [0x831092], 0x12ad6
and dword [0x83105b], edi
call sub.kernel32.dll_GetVersion
call sub.kernel32.dll_GetCommandLineA
mov word [0x8310cb], 0x2372
mov dword [0x831107], ebx
mov dword [0x8310bf], esi
test al, al
jne 0x407102
sub edx, eax
mov ebx, ecx
mov dword [0x83108f], edi
jmp 0x407108
sub dword [0x8310c3], edx
call fcn.00402ab8
mov dword [0x8310c2], ecx
mov dword [0x83109a], edx
mov dword [0x831012], 0x12982
xchg dword [0x8310fa], edi
sub dword [0x844a3c], 0x30
xor eax, eax
mov dword [0x844a44], eax
mov dword [0x83108e], esi
and dword [0x831067], edx
sub dword [0x831064], eax
call fcn.00402ab8
sub dword [0x844a3c], 0x88
inc dword [0x831102]
mov dword [0x8310b1], 0x1147c
mov dword [0x831093], ebx
test bh, bh
je 0x407183
mov word [0x8310a1], 0xa527
mov dword [0x8310b2], ecx
jmp 0x4071a3
dec byte [0x8310e4]
mov dword [0x831015], 0x1183e
mov dword [0x831100], ecx
mov dword [0x831077], 0x17359
xor eax, eax
mov dword [0x831022], eax
mov dword [0x8310bb], esi
mov dword [0x8310e8], ebx
mov edi, 0x1cc
mov ebx, edx
xor eax, eax
mov dword [0x845408], eax
call fcn.00402ab8
call fcn.00401368
call fcn.00402ab8
mov dword [esp - 4], esi
cmp dword [esp - 0x20], ecx
jne 0x4071e6
mov dword [0x8310fd], edi
jmp 0x407201
mov word [0x8310ad], 0x1eb0
mov dword [0x8310d0], ebx
mov dword [0x83106d], esi
xchg dword [0x8310e3], edi
lea esi, [0x8310fb]
add dword [esi + 0x1c], ebx
mov dword [0x831058], eax
call fcn.00402ab8
dec dword [0x845408]
cmp dword [0x845408], 0xffffffff
jne 0x4071c5
call fcn.004072e4
mov dword [0x8310f6], 0x1568c
mov dword [0x8310b6], 0x139a8
mov dword [0x8310ca], 0x16ae4
cmp ebx, 0xffffffff
je 0x407255
dec edx
sub dword [0x831024], ebx
jmp 0x40725a
call fcn.00407280
mov dword [0x831062], edx
cmp dword [0x844a48], 0
jne 0x830c68
lea eax, [0x40c678]
inc edi
mov dword [0x8310d0], ecx
call fcn.00401368
ret
mov dword [0x83104d], edx
add esi, dword [0x83101a]
xchg dword [0x831056], esi
mov byte [0x8310f1], 0xfb
push ebp
mov ebp, esp
add esp, 0xffffffac
mov word [0x8310f8], 0x26c5
mov byte [0x83110a], 0xf
cmp dword [0x831043], esi
jle 0x830c8e
mov dword [0x8310f0], eax
jmp 0x830ca8
mov esi, dword [0x831097]
and dword [0x8310a2], eax
mov dword [esp - 0x24], esi
and dword [0x831087], ecx
mov dword [esp - 0x10], edx
mov dword [0x8310bb], esi
mov dword [0x8310e8], ebx
mov edi, 0x1cc
mov ebx, edx
mov byte [ebp - 1], 0
mov byte [0x83107a], 0x65
xchg dword [0x8310df], edi
and dword [0x83110a], edx
add ecx, dword [0x8310f7]
mov dword [esp - 4], esi
push edx
call fcn.004026d4
inc byte [ebp - 1]
cmp byte [ebp - 1], 1
jne 0x830cbf
push eax
call fcn.00402a10
call fcn.00401368
cmp dh, byte [esp - 0x28]
je 0x830d09
xchg dword [0x831056], esi
mov byte [0x8310f1], 0xfb
mov dword [esp - 4], edx
mov dword [0x831092], 0x12ad6
and dword [0x83105b], edi
call fcn.00409044
mov dword [0x83108e], esi
and dword [0x831067], edx
sub dword [0x831064], eax
call fcn.0040a760
mov dword [0x8310c2], ecx
mov dword [0x83109a], edx
mov dword [0x831012], 0x12982
xchg dword [0x8310fa], edi
call fcn.004035f4
inc dword [0x831102]
mov dword [0x8310b1], 0x1147c
mov dword [0x831093], ebx
test bh, bh
je 0x830d85
mov word [0x8310a1], 0xa527
mov dword [0x8310b2], ecx
jmp 0x830da5
dec byte [0x8310e4]
mov dword [0x831015], 0x1183e
mov dword [0x831100], ecx
mov dword [0x831077], 0x17359
cmp dword [0x844a5c], 0
je fcn.004073ac
lea edx, [0x831037]
sub dword [edx + 0x20], ebx
mov dword [0x8310a7], 0x173fb
cmp ebx, 0xffffffff
jg 0x830dd6
mov dword [0x83104d], edx
add esi, dword [0x83101a]
call fcn.00407280
mov dword [0x83108c], edx
xchg dword [0x831084], esi
mov dword [esp - 0xc], eax
mov dword [0x8310c5], edi
mov dword [0x83103d], 0x401008
mov esp, ebp
pop ebp
ret