Function at 0x41d374
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x41d805
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x41d3e1
mov edx, dword [0x432b04]
cmp byte [edx], 0
je 0x41d3d8
mov eax, dword [ebp - 0x10]
cmp bx, word [eax]
je 0x41d3ec
mov eax, dword [ebp - 0x10]
cmp word [eax], 0x3a
jne 0x41d3dd
mov eax, dword [ebp - 0x10]
cmp bx, word [eax + 2]
jne 0x41d3ec
jmp 0x41d3dd
cmp bx, ax
je 0x41d3ec
add dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
test ax, ax
jne 0x41d3b1
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
test ax, ax
je 0x41d408
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 8]
sar edx, 1
jns 0x41d404
adc edx, 0
test edx, edx
jne 0x41d40f
xor ebx, ebx
jmp 0x41d7ea
mov esi, eax
mov eax, dword [ebp - 0x10]
mov word [eax], 0
cmp dword [ebp - 8], 0
je 0x41d429
mov eax, dword [ebp - 8]
call fcn.0040685c
jmp 0x41d42b
xor eax, eax
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
cmp bx, si
jne 0x41d43a
mov eax, dword [ebp - 0xc]
inc dword [eax]
mov eax, dword [ebp - 8]
call fcn.0041e0ac
mov edi, eax
mov eax, dword [0x432b04]
cmp byte [eax], 0
je 0x41d4a4
test edi, edi
jne 0x41d4a4
mov edx, 0x41d818
mov eax, dword [ebp - 8]
call fcn.004133ac
test eax, eax
jne 0x41d48c
mov edi, 0x447040
mov eax, dword [0x432d14]
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0
lea eax, [ebp - 0x60]
push eax
push 0
mov ecx, 0x41d830
xor edx, edx
mov eax, edi
call fcn.00417a6c
jmp 0x41d4a4
mov edx, 0x41d838
mov eax, dword [ebp - 8]
call fcn.004133ac
test eax, eax
jne 0x41d4a4
call sub.kernel32.dll_GetCommandLineW_1
mov edi, eax
mov eax, dword [ebp - 0x10]
mov word [eax], si
cmp bx, si
je 0x41d4b5
cmp si, 0x3a
jne 0x41d4b9
add dword [ebp - 0x10], 2
mov eax, dword [0x432b04]
cmp byte [eax], 0
je 0x41d7e8
cmp si, 0x3a
jne 0x41d7e8
test edi, edi
je 0x41d7e8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
cmp word [eax], 0x7e
jne 0x41d5de
add dword [ebp - 0x10], 2
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.msvcrt.dll_wcstol
add esp, 0xc
mov esi, eax
test esi, esi
jge 0x41d51f
test edi, edi
je 0x41d51b
mov eax, edi
call fcn.0040685c
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
jmp 0x41d51d
xor eax, eax
add esi, eax
test esi, esi
jge 0x41d525
xor esi, esi
mov eax, dword [ebp - 0x10]
cmp word [eax], 0x2c
jne 0x41d594
add dword [ebp - 0x10], 2
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.msvcrt.dll_wcstol
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x41d56e
test edi, edi
je 0x41d564
mov dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x38]
call fcn.0040685c
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
jmp 0x41d566
xor eax, eax
add eax, dword [ebp - 0x20]
sub eax, esi
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x41d579
xor eax, eax
mov dword [ebp - 0x20], eax
mov edx, esi
add edx, edx
add edx, edi
mov ecx, dword [ebp - 0x20]
mov eax, edi
call fcn.00417908
mov eax, dword [ebp - 0x20]
mov word [edi + eax*2], 0
jmp 0x41d5a1
mov edx, esi
add edx, edx
add edx, edi
mov eax, edi
call fcn.004179e4
mov eax, dword [ebp - 0x10]
cmp bx, word [eax]
jne 0x41d7ce
add dword [ebp - 0x10], 2
jmp 0x41d7ce
lea eax, [ebp - 0x64]
mov edx, dword [ebp - 0x10]
call fcn.00406b6c
mov eax, dword [ebp - 0x64]
push eax
lea eax, [ebp - 0x68]
mov edx, ebx
call fcn.00406b2c
mov edx, dword [ebp - 0x68]
pop eax
call fcn.00406e10
je 0x41d5ef
add dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
movzx esi, word [eax]
test si, si
je 0x41d5ef
cmp si, 0x3d
jne 0x41d5b6
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp ax, 0x3d
jne 0x41d789
mov eax, dword [ebp - 0x10]
mov word [eax], 0
add dword [ebp - 0x10], 2
cmp dword [ebp - 0x18], 0
je 0x41d627
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
call fcn.0040685c
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
jmp 0x41d629
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
jmp 0x41d638
add dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
test ax, ax
je 0x41d648
cmp bx, ax
jne 0x41d634
mov eax, dword [ebp - 0x10]
cmp word [eax], 0
je 0x41d77b
mov eax, dword [ebp - 0x10]
mov word [eax], 0
cmp dword [ebp - 0x1c], 0
je 0x41d679
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
call fcn.0040685c
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
jmp 0x41d67b
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x18]
cmp word [eax], 0x2a
jne 0x41d69d
mov dword [ebp - 0x30], 1
add dword [ebp - 0x18], 2
dec dword [ebp - 0x24]
jmp 0x41d764
xor eax, eax
mov dword [ebp - 0x30], eax
jmp 0x41d764
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.00413454
test eax, eax
jne 0x41d760
cmp dword [ebp - 0x30], 0
je 0x41d6d5
mov eax, dword [ebp - 0x14]
sub eax, edi
sar eax, 1
jns 0x41d6cf
adc eax, 0
add dword [ebp - 0x24], eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x41d724
cmp dword [ebp - 0x14], 0
je 0x41d703
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
call fcn.0040685c
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x50], eax
jmp 0x41d708
xor eax, eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x2c]
add eax, eax
mov edx, dword [ebp - 0x14]
sub edx, eax
mov eax, dword [ebp - 0x50]
inc eax
mov ecx, eax
add ecx, ecx
mov eax, dword [ebp - 0x14]
call fcn.00403b24
jmp 0x41d73a
cmp dword [ebp - 0x2c], 0
jle 0x41d73a
mov edx, dword [ebp - 0x2c]
add edx, edx
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
call fcn.004179e4
mov ecx, dword [ebp - 0x28]
add ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
call fcn.00403b24
cmp dword [ebp - 0x30], 0
je 0x41d756
sub dword [ebp - 0x18], 2
jmp 0x41d771
mov eax, dword [ebp - 0x28]
add eax, eax
add dword [ebp - 0x14], eax
jmp 0x41d764
add dword [ebp - 0x14], 2
mov eax, dword [ebp - 0x14]
cmp word [eax], 0
jne 0x41d6a7
mov eax, dword [ebp - 0x10]
mov word [eax], bx
add dword [ebp - 0x10], 2
sub dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
mov word [eax], 0x3d
jmp 0x41d7ce
test ax, ax
je 0x41d7ce
cmp dword [ebp - 4], 0
je 0x41d7ca
push 0
lea edx, [ebp - 0x6c]
mov eax, dword [0x432a30]
call fcn.00408e50
mov eax, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x60], edx
mov byte [ebp - 0x5c], 0xa
lea ecx, [ebp - 0x60]
mov edx, 1
call fcn.00426e00
mov eax, dword [ebp - 4]
or edx, 0xffffffff
call fcn.00417690
jmp 0x41d7ce
xor ebx, ebx
jmp 0x41d7ea
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
add eax, eax
add eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
sar eax, 1
jns 0x41d7e2
adc eax, 0
inc eax
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov ebx, edi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d80c
lea eax, [ebp - 0x6c]
mov edx, 3
call fcn.00406474
ret