Function at 0x4020c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421741
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x4300b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x228], ebp
mov eax, dword [ebp - 0x228]
push 0
push eax
push 0x423c78
call fcn.00417080
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x402127
mov edi, str.int___thiscall_CCmdlineParser::_Parser_void_
push ebx
push edi
mov edx, str.int___thiscall_CCmdlineParser::_Parser_void_
mov ecx, 0x423d04
lea esi, [ebp - 0x268]
call fcn.0040c280
xor esi, esi
mov dword [ebp - 4], esi
cmp edi, esi
jne 0x402149
push ebp
pop ebp
cmp dword [ebx + 0x38], esi
jne 0x402167
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x268]
call fcn.0040bfc0
xor eax, eax
jmp 0x4027ea
mov dword [ebp - 0x21c], esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x230], esi
mov byte [ebp - 4], 2
mov edx, dword [ebx + 0x38]
lea ecx, [ebp - 0x220]
push ecx
push edx
mov dword [ebp - 0x220], esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor edi, edi
cmp dword [ebp - 0x220], esi
mov dword [ebp - 0x234], eax
jle 0x402264
mov ecx, str.CCmdlineParser::_Parser
call fcn.0040bd20
test eax, eax
jne 0x402257
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax + edi*4]
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4021c6
sub eax, esi
sar eax, 1
push eax
push ecx
push ecx
push ecx
push edi
push ecx
mov edx, ebx
mov ecx, str.CCmdlineParser::_Parser
call fcn.00411ce0
mov edx, str._param
mov ecx, eax
call fcn.0040ba10
add esp, 4
mov esi, eax
call fcn.0040b810
mov edx, 0x423d70
mov ecx, eax
call fcn.0040ba10
add esp, 4
push eax
call fcn.0040b8d0
mov edx, str._len_:
mov ecx, eax
call fcn.0040ba10
add esp, 4
mov esi, eax
call fcn.0040b810
mov esi, eax
xor eax, eax
mov dword [0x430e60], eax
mov ecx, dword [esi + 0x240]
push 1
push ecx
push 1
xor ecx, ecx
mov edx, esi
mov dword [esi + 0x248], eax
call fcn.00416620
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
inc edi
cmp edi, dword [ebp - 0x220]
jl 0x4021a6
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x224], esi
mov esi, dword [edx]
test esi, esi
je 0x402311
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea eax, [ebp - 0x218]
push eax
call edi
push esi
mov dword [ebp - 0x22c], eax
call edi
mov edi, dword [sym.imp.MSVCR90.dll__wcsicmp]
lea ecx, [ebp - 0x218]
push esi
push ecx
mov dword [ebp - 0x238], eax
call edi
add esp, 8
test eax, eax
je 0x402307
push esi
mov esi, dword [ebp - 0x22c]
push esi
call edi
add esp, 8
test eax, eax
je 0x402307
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x402311
push eax
push esi
call edi
add esp, 8
test eax, eax
jne 0x402311
mov dword [ebp - 0x224], 1
mov eax, dword [ebp - 0x224]
cmp eax, dword [ebp - 0x220]
jge 0x4027b3
inc eax
mov dword [ebp - 0x22c], eax
lea ebx, [ebx]
mov eax, dword [ebp - 0x224]
mov edx, dword [ebp - 0x234]
mov edi, dword [edx + eax*4]
movzx eax, word [edi]
mov ecx, 0x2f
cmp cx, ax
je 0x40245a
mov edx, 0x2d
cmp dx, ax
je 0x40245a
mov ecx, str.CCmdlineParser::_Parser
call fcn.0040bd20
test eax, eax
jne 0x40240a
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402375
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp - 0x224]
push ecx
push edi
push ecx
push eax
push ecx
mov edx, ebx
mov ecx, str.CCmdlineParser::_Parser
call fcn.00411ce0
mov edx, str._Fixed_Item
mov ecx, eax
call fcn.0040ba10
add esp, 4
mov esi, eax
call fcn.0040b810
mov edx, str.__FixItem_:
mov ecx, eax
call fcn.0040ba10
add esp, 4
push eax
call fcn.0040b8d0
mov edx, str._Length_:
mov ecx, eax
call fcn.0040ba10
add esp, 4
mov esi, eax
call fcn.0040b810
mov esi, eax
xor eax, eax
mov dword [0x430e60], eax
mov ecx, dword [esi + 0x240]
push 1
push ecx
push 1
xor ecx, ecx
mov edx, esi
mov dword [esi + 0x248], eax
call fcn.00416620
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x230]
cmp edi, eax
je 0x40242c
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x230], eax
test eax, eax
je 0x402483
mov edx, dword [ebp - 0x230]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jbe 0x402794
lea edi, [ebx + 0x20]
lea ebx, [ebp - 0x230]
call fcn.00405640
mov ebx, dword [ebp - 0x240]
jmp 0x402794
mov esi, dword [ebp - 0x21c]
add edi, 2
cmp edi, esi
je 0x40249d
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
je 0x40248d
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x21c], eax
test eax, eax
jne 0x402497
push 0x8007000e
call fcn.004177e0
mov dword [ebp - 0x21c], 0
mov esi, dword [ebp - 0x21c]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push esi
call edi
test eax, eax
jbe 0x4024b5
push esi
call edi
push eax
push esi
call dword [sym.imp.USER32.dll_CharLowerBuffW]
mov eax, dword [0x432c18]
mov edi, dword [eax + 4]
cmp byte [edi + 0x15], 0
mov ecx, dword [0x432c00]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x23c], ecx
mov esi, eax
jne 0x40250f
jmp 0x4024e0
mov edx, dword [ebp - 0x21c]
mov eax, dword [edi + 0xc]
push 0
push 0x400
push edx
push eax
call sub.OLEAUT32.dll_VarR8Pow
test eax, eax
jne 0x402500
mov edi, dword [edi + 8]
jmp 0x402504
mov esi, edi
mov edi, dword [edi]
cmp byte [edi + 0x15], 0
je 0x4024e0
mov eax, dword [0x432c18]
mov ecx, dword [0x432c00]
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x250], ecx
mov edi, eax
test ecx, ecx
jne 0x402532
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [0x432c18]
cmp esi, edi
je 0x40255e
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp - 0x21c]
push 0
push 0x400
push ecx
push edx
call sub.OLEAUT32.dll_VarR8Pow
test eax, eax
je 0x402559
lea eax, [ebp - 0x250]
jmp 0x402575
mov eax, dword [0x432c18]
mov dword [ebp - 0x244], eax
mov eax, dword [0x432c00]
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x248]
mov ecx, dword [eax]
mov esi, dword [eax + 4]
test ecx, ecx
je 0x402586
cmp ecx, dword [ebp - 0x23c]
je 0x40258c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp esi, dword [ebp - 0x238]
je 0x40263c
push ebx
lea ecx, [ebp - 0x21c]
call fcn.00405380
mov edi, eax
mov ecx, dword [edi]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
call fcn.0040b420
xor esi, esi
mov dword [edi], eax
cmp eax, esi
je 0x402483
mov ecx, str.CCmdlineParser::_Parser
call fcn.0040bd20
test eax, eax
jne 0x402794
push ebx
lea ecx, [ebp - 0x21c]
call fcn.00405380
mov eax, dword [eax]
mov edx, dword [ebp - 0x21c]
push eax
push ecx
push edx
push ecx
mov edx, ebx
mov ecx, str.CCmdlineParser::_Parser
call fcn.00411ce0
mov edx, str._Key_:
mov ecx, eax
call fcn.0040ba10
add esp, 4
push eax
call fcn.0040b8d0
mov edx, str.__Value_:
mov ecx, eax
call fcn.0040ba10
add esp, 4
push eax
call fcn.0040b8d0
mov edi, eax
mov dword [0x430e60], esi
mov eax, dword [edi + 0x240]
push 1
mov dword [edi + 0x248], esi
push eax
jmp 0x40277f
mov ecx, dword [ebp - 0x22c]
cmp ecx, dword [ebp - 0x220]
jge 0x4026e1
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x224]
mov edi, dword [eax + ecx*4 + 4]
movzx eax, word [edi]
mov edx, 0x2d
cmp dx, ax
jne 0x40267b
movzx ecx, word [edi + 2]
cmp cx, 0x30
jb 0x4026e1
cmp cx, 0x39
ja 0x4026e1
mov ecx, 0x2f
cmp cx, ax
je 0x4026e1
push ebx
lea ecx, [ebp - 0x21c]
call fcn.00405380
mov esi, eax
mov eax, dword [esi]
cmp edi, eax
je 0x4026ce
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
je 0x4026c8
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x402483
mov eax, 1
add dword [ebp - 0x224], eax
add dword [ebp - 0x22c], eax
jmp 0x402707
mov dword [esi], 0
mov eax, 1
add dword [ebp - 0x224], eax
add dword [ebp - 0x22c], eax
jmp 0x402707
push ebx
lea ecx, [ebp - 0x21c]
call fcn.00405380
mov edi, eax
mov edx, dword [edi]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
call fcn.0040b420
mov dword [edi], eax
test eax, eax
je 0x402483
mov ecx, str.CCmdlineParser::_Parser
call fcn.0040bd20
test eax, eax
jne 0x402794
push ebx
lea ecx, [ebp - 0x21c]
call fcn.00405380
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x21c]
push ecx
push eax
push ecx
mov edx, ebx
mov ecx, str.CCmdlineParser::_Parser
call fcn.00411ce0
mov edx, str._Key_:
mov ecx, eax
call fcn.0040ba10
add esp, 4
push eax
call fcn.0040b8d0
mov edx, str.__Value_:
mov ecx, eax
call fcn.0040ba10
add esp, 4
push eax
call fcn.0040b8d0
mov edi, eax
xor eax, eax
mov dword [0x430e60], eax
mov ecx, dword [edi + 0x240]
push 1
mov dword [edi + 0x248], eax
push ecx
push 1
xor ecx, ecx
mov edx, edi
call fcn.00416620
add edi, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x224]
inc dword [ebp - 0x22c]
inc eax
cmp eax, dword [ebp - 0x220]
mov dword [ebp - 0x224], eax
jl 0x402330
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x230]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edx
call esi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x21c]
push eax
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x268]
call fcn.0040bfc0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e4d2
mov esp, ebp
pop ebp
ret