Function at 0x4222e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4550d8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x46b664]
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
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov edi, ecx
push eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ebx
call fcn.00421010
mov dword [ebp - 4], ebx
test byte [0x46fc8c], 1
mov esi, 1
mov dword [ebp - 0x50], esi
jne 0x42235f
or dword [0x46fc8c], esi
mov dword [ebp - 4], esi
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call edi
mov ecx, eax
call fcn.0041d090
push 0x457700
call fcn.004334e1
add esp, 4
mov byte [ebp - 4], bl
jmp 0x422365
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x45e214
push 0x46fc28
call fcn.0041d7b0
test eax, eax
je 0x42246b
test byte [0x46fc8c], 1
jne 0x4223ab
or dword [0x46fc8c], esi
mov dword [ebp - 4], 2
call edi
mov ecx, eax
call fcn.0041d090
push 0x457700
call fcn.004334e1
add esp, 4
mov byte [ebp - 4], bl
push str.logmode
push 0x46fc28
call fcn.0041d7b0
xor ecx, ecx
mov word [ebp - 0x2c], cx
mov ecx, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
lea esi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x4223d0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x2c]
call fcn.0040eba0
mov dword [ebp - 4], 3
lea edx, [ebp - 0x48]
push edx
mov edi, esi
call fcn.0041bdd0
add esp, 4
mov byte [ebp - 4], 5
cmp dword [ebp - 0x18], 8
jb 0x422413
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00431dda
add esp, 4
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov esi, 7
mov word [ebp - 0x2c], cx
push str.append
lea edi, [esi - 1]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
call fcn.004086f0
test eax, eax
jne 0x422442
mov edx, dword [ebp - 0x4c]
mov byte [edx + 0x5e], 1
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], 8
jb 0x422457
mov eax, dword [ebp - 0x48]
push eax
call fcn.00431dda
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
jmp 0x422470
mov esi, 7
test byte [0x46fc8c], 1
jne 0x4224a0
or dword [0x46fc8c], 1
mov dword [ebp - 4], 6
call edi
mov ecx, eax
call fcn.0041d090
push 0x457700
call fcn.004334e1
add esp, 4
mov byte [ebp - 4], bl
push str.reportto
push 0x46fc28
call fcn.0041d7b0
test eax, eax
je 0x422562
test byte [0x46fc8c], 1
jne 0x4224e3
or dword [0x46fc8c], 1
mov dword [ebp - 4], esi
call edi
mov ecx, eax
call fcn.0041d090
push 0x457700
call fcn.004334e1
add esp, 4
mov byte [ebp - 4], bl
push str.reportto
push 0x46fc28
call fcn.0041d7b0
xor edx, edx
mov ecx, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x422503
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x2c]
call fcn.0040eba0
mov dword [ebp - 4], 8
mov esi, dword [ebp - 0x4c]
push ebx
lea eax, [ebp - 0x2c]
push eax
or eax, 0xffffffff
lea ecx, [esi + 0x24]
call fcn.00401a90
lea ecx, [esi + 0x24]
call fcn.00416bf0
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 8
jb 0x422552
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00431dda
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
test byte [0x46fc8c], 1
jne 0x422592
or dword [0x46fc8c], 1
mov dword [ebp - 4], 9
call edi
mov ecx, eax
call fcn.0041d090
push 0x457700
call fcn.004334e1
add esp, 4
mov byte [ebp - 4], bl
push str.debuglog
push 0x46fc28
call fcn.0041d7b0
test eax, eax
mov eax, dword [ebp - 0x4c]
je 0x4225ac
mov byte [eax + 0x5c], 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.00431de5
mov esp, ebp
pop ebp
ret