Function at 0x406dc0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63739b
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x6eed24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, eax
mov dword [ebp - 0x18], edx
test edx, edx
jne 0x406e2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failure_command_line_parsing._Error_code:__d
push 1
push 0x3a
push str.e:workprgpdf5_builds_rc.328_trackerupdatecmdline.cpp
call fcn.00431810
mov edx, dword [ebp - 0x18]
add esp, 0x14
mov ecx, 1
xor edi, edi
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x14], ecx
jbe 0x406f6f
jmp 0x406e46
mov edx, dword [ebp - 0x18]
lea eax, [ecx*4]
mov edx, dword [eax + edx]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], edx
test edx, edx
je 0x406f62
movzx eax, word [edx]
cmp eax, 0x2d
je 0x406e6f
cmp eax, 0x2f
jne 0x406f62
xor eax, eax
mov edi, ecx
cmp word [edx + 2], 0x2d
mov dword [ebp - 0x34], edi
sete al
xor ebx, ebx
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [esi + 4], ebx
jbe 0x406f62
lea ecx, [ecx]
mov eax, dword [esi]
mov esi, 0x649aa0
mov edi, dword [eax + ebx*4]
mov dword [ebp - 0x24], edi
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x406ea6
mov esi, ecx
lea edx, [esi + 2]
lea esp, [esp]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x406eb0
sub esi, edx
sar esi, 1
test ecx, ecx
jne 0x406ec8
mov ecx, 0x649aa0
mov edi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
lea eax, [edi + edx*2]
mov edi, dword [ebp - 0x24]
test eax, eax
jne 0x406ede
neg ecx
sbb ecx, ecx
jmp 0x406eef
test ecx, ecx
je 0x406ef3
push esi
push ecx
push eax
call fcn.004c283a
add esp, 0xc
mov ecx, eax
test ecx, ecx
je 0x406f47
mov esi, dword [edi + 0x14]
mov ecx, esi
test esi, esi
jne 0x406f01
mov esi, 0x649aa0
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x406f04
sub esi, edx
sar esi, 1
test ecx, ecx
jne 0x406f1c
mov ecx, 0x649aa0
mov edi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
lea eax, [edi + edx*2]
mov edi, dword [ebp - 0x24]
test eax, eax
jne 0x406f32
neg ecx
sbb ecx, ecx
jmp 0x406f43
test ecx, ecx
je 0x406f4f
push esi
push ecx
push eax
call fcn.004c283a
add esp, 0xc
mov ecx, eax
test ecx, ecx
jne 0x406f4f
test esi, esi
jne 0x406fdd
mov esi, dword [ebp - 0x28]
inc ebx
cmp ebx, dword [esi + 4]
jb 0x406e90
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x34]
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, dword [ebp - 0x14]
jb 0x406e43
lea ebx, [edi + 1]
cmp ebx, dword [ebp - 0x14]
jae 0x40710d
lea edi, [esi + 0xc]
mov edi, edi
mov eax, dword [ebp - 0x18]
mov ecx, edi
push 1
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x34], eax
call fcn.00404350
test al, al
je 0x407103
push 0xc
call fcn.004463f0
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4070c9
push 0xffffffffffffffff
push dword [ebp - 0x34]
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.00403940
jmp 0x4070cb
cmp dword [edi + 0x24], 0
jne 0x4070bc
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
add eax, esi
lea esi, [ecx + eax*2]
movzx eax, word [esi]
cmp eax, 0x3d
je 0x40702a
cmp eax, 0x3a
je 0x40702a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov esi, dword [esi + eax + 4]
mov eax, dword [edi + 4]
test eax, eax
je 0x407026
test esi, esi
je 0x407021
movzx ecx, word [esi]
cmp ecx, 0x2d
je 0x407026
cmp ecx, 0x2f
je 0x407026
inc dword [ebp - 0x10]
jmp 0x407030
xor esi, esi
jmp 0x407030
mov eax, dword [edi + 4]
add esi, 2
test eax, eax
jne 0x40705f
mov dword [edi + 0x28], 1
test esi, esi
je 0x407056
push 2
push 0x649ec4
push esi
call fcn.004c283a
add esp, 0xc
test eax, eax
jne 0x407056
mov dword [edi + 0x28], eax
mov dword [edi + 0x24], 1
jmp 0x4070ab
cmp eax, 1
jne 0x407084
mov dword [edi + 0x28], 0
test esi, esi
je 0x4070bc
lea eax, [ebp - 0x30]
push eax
push 1
push esi
call dword [sym.imp.SHLWAPI.dll_StrToIntExW]
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x28], eax
jmp 0x4070ab
cmp eax, 2
jne 0x4070ab
mov eax, dword [edi + 0x2c]
lea ecx, [edi + 0x2c]
mov dword [ecx + 4], 0
test eax, eax
je 0x40709f
xor edx, edx
mov word [eax], dx
test esi, esi
je 0x4070bc
push 0xffffffffffffffff
push esi
call fcn.00403940
test esi, esi
je 0x4070bc
cmp word [esi], 0
je 0x4070bc
mov dword [edi + 0x24], 1
mov ecx, dword [ebp - 0x10]
mov edi, ecx
mov esi, dword [ebp - 0x28]
jmp 0x406f62
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x407103
push 1
mov ecx, edi
call fcn.00404350
test al, al
je 0x407103
mov eax, dword [edi + 8]
cmp eax, dword [edi + 4]
ja 0x4070f8
push 1
mov ecx, edi
call fcn.00404350
test al, al
je 0x407103
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [eax + ecx*4], esi
inc dword [edi + 4]
inc ebx
cmp ebx, dword [ebp - 0x14]
jb 0x406f80
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret