Function at 0x402660
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4105b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x510
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
push 0x4011fc
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
je 0x4028e5
push 0xfdf4
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0
je 0x4028c7
mov ecx, dword [ebp - 0x414]
add ecx, 0x10
mov dword [ebp - 0x414], ecx
mov edx, dword [ebp - 0x414]
add edx, 0x10
mov dword [ebp - 0x414], edx
mov dword [ebp - 0x51c], 0
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax]
mov dword [ebp - 0x51c], ecx
mov edi, 0x4013e4
lea edx, [ebp - 0x518]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0xa
lea edi, [ebp - 0x518]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
lea ecx, [ebp + ecx - 0x518]
push ecx
mov edx, dword [ebp - 0x51c]
push edx
call dword [sym.imp.MSVCRT.dll__itoa]
add esp, 0xc
lea eax, [ebp - 0x518]
push eax
push 0
call fcn.00401c00
add esp, 8
cmp dword [ebp - 0x51c], 0xfa
jne 0x402790
mov dword [ebp - 0x51c], 0
mov ecx, dword [ebp - 0x414]
add ecx, 0x10
mov dword [ebp - 0x414], ecx
mov edx, dword [ebp - 0x51c]
imul edx, edx, 0x104
mov eax, dword [ebp - 0x414]
lea ecx, [eax + edx*4]
mov dword [ebp - 0x414], ecx
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov dword [ebp - 0x520], ecx
mov edi, 0x4013dc
lea edx, [ebp - 0x518]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0xa
lea edi, [ebp - 0x518]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
lea ecx, [ebp + ecx - 0x518]
push ecx
mov edx, dword [ebp - 0x520]
push edx
call dword [sym.imp.MSVCRT.dll__itoa]
add esp, 0xc
lea eax, [ebp - 0x518]
push eax
push 0
call fcn.00401c00
add esp, 8
cmp dword [ebp - 0x520], 0x104
ja 0x4028c5
push 0x4013cc
push 0
call fcn.00401c00
add esp, 8
mov ecx, dword [ebp - 0x520]
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x414]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x51c]
imul eax, eax, 0x104
shl eax, 2
mov ecx, dword [ebp - 0x414]
sub ecx, eax
mov dword [ebp - 0x414], ecx
mov edx, dword [ebp - 0x414]
sub edx, 0x10
mov dword [ebp - 0x414], edx
mov eax, dword [ebp - 0x51c]
add eax, 1
mov dword [ebp - 0x51c], eax
push 0x4013bc
push 0
call fcn.00401c00
add esp, 8
mov ecx, dword [ebp - 0x414]
mov edx, dword [ebp - 0x51c]
mov dword [ecx], edx
jmp 0x4028d6
push 0x4013a4
push 3
call fcn.00401c00
add esp, 8
mov eax, dword [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4028f4
push 0x401388
push 3
call fcn.00401c00
add esp, 8
jmp 0x40290b
mov dword [ebp - 4], 0xffffffff
mov edi, 0x40136c
lea edx, [ebp - 0x40c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
lea edx, [ebp - 0x40c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40136c
lea edx, [ebp - 0x40c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x401364
lea edx, [ebp - 0x40c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x401358
lea edx, [ebp - 0x40c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0xa
lea eax, [ebp - 0x24]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, eax
call fcn.004019d0
push eax
call dword [sym.imp.MSVCRT.dll__itoa]
add esp, 0xc
lea edi, [ebp - 0x24]
lea edx, [ebp - 0x40c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40134c
lea edx, [ebp - 0x40c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
lea edx, [ebp - 0x40c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x40132c
push 0
call fcn.00401c00
add esp, 8
lea eax, [ebp - 0x40c]
push eax
call fcn.00402b00
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret