Function at 0x422a30
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455b58
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x46c664]
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.00421760
mov dword [ebp - 4], ebx
test byte [0x470c8c], 1
mov esi, 1
mov dword [ebp - 0x50], esi
jne 0x422aaf
or dword [0x470c8c], esi
mov dword [ebp - 4], esi
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call edi
mov ecx, eax
call fcn.0041d4e0
push 0x458040
call fcn.00433d71
add esp, 4
mov byte [ebp - 4], bl
jmp 0x422ab5
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x45f224
push 0x470c28
call fcn.0041dc00
test eax, eax
je 0x422bbb
test byte [0x470c8c], 1
jne 0x422afb
or dword [0x470c8c], esi
mov dword [ebp - 4], 2
call edi
mov ecx, eax
call fcn.0041d4e0
push 0x458040
call fcn.00433d71
add esp, 4
mov byte [ebp - 4], bl
push str.logmode
push 0x470c28
call fcn.0041dc00
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 0x422b20
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x2c]
call fcn.0040e990
mov dword [ebp - 4], 3
lea edx, [ebp - 0x48]
push edx
mov edi, esi
call fcn.0041c330
add esp, 4
mov byte [ebp - 4], 5
cmp dword [ebp - 0x18], 8
jb 0x422b63
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0043266a
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.004084d0
test eax, eax
jne 0x422b92
mov edx, dword [ebp - 0x4c]
mov byte [edx + 0x5e], 1
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], 8
jb 0x422ba7
mov eax, dword [ebp - 0x48]
push eax
call fcn.0043266a
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 0x422bc0
mov esi, 7
test byte [0x470c8c], 1
jne 0x422bf0
or dword [0x470c8c], 1
mov dword [ebp - 4], 6
call edi
mov ecx, eax
call fcn.0041d4e0
push 0x458040
call fcn.00433d71
add esp, 4
mov byte [ebp - 4], bl
push str.reportto
push 0x470c28
call fcn.0041dc00
test eax, eax
je 0x422cb2
test byte [0x470c8c], 1
jne 0x422c33
or dword [0x470c8c], 1
mov dword [ebp - 4], esi
call edi
mov ecx, eax
call fcn.0041d4e0
push 0x458040
call fcn.00433d71
add esp, 4
mov byte [ebp - 4], bl
push str.reportto
push 0x470c28
call fcn.0041dc00
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 0x422c53
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x2c]
call fcn.0040e990
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.00416b30
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 8
jb 0x422ca2
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0043266a
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
test byte [0x470c8c], 1
jne 0x422ce2
or dword [0x470c8c], 1
mov dword [ebp - 4], 9
call edi
mov ecx, eax
call fcn.0041d4e0
push 0x458040
call fcn.00433d71
add esp, 4
mov byte [ebp - 4], bl
push str.debuglog
push 0x470c28
call fcn.0041dc00
test eax, eax
mov eax, dword [ebp - 0x4c]
je 0x422cfc
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.00432675
mov esp, ebp
pop ebp
ret