Function at 0x4063dd
Capabilities:
Accept command line arguments
Create thread
Get common file path
Read .ini file
Terminate process

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [0x41634c], ebp
mov dword [0x416350], ebp
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
push 0x22
pop ebx
cmp byte [eax], bl
jne 0x40640c
push 0xffffffffffffffff
inc eax
push ebx
push eax
call fcn.0040e7d1
add esp, 0xc
push 0xffffffffffffffff
push 0x20
push eax
call fcn.0040e7d1
add esp, 0xc
cmp eax, ebp
je 0x406464
mov cl, byte [eax]
cmp cl, 0x20
jne 0x40642b
test cl, cl
je 0x40642b
inc eax
jmp 0x40641d
cmp eax, ebp
je 0x406464
mov esi, 0x41634c
cmp byte [eax], 0
je 0x406464
inc eax
cmp esi, 0x416354
jge 0x406444
mov dword [esi], eax
push 0xffffffffffffffff
push ebx
push eax
add esi, 4
call fcn.0040e7d1
and byte [eax], 0
push 0xffffffffffffffff
inc eax
push ebx
push eax
call fcn.0040e7d1
add esp, 0x18
cmp eax, ebp
jne 0x406434
push ebp
call fcn.0040e495
pop ecx
mov dword [0x416aac], eax
mov ecx, dword [0x41634c]
cmp ecx, ebp
jne 0x406489
push eax
push 0x416aa8
call fcn.00407019
pop ecx
pop ecx
jmp 0x4064d5
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
push 0x411fd8
push ecx
call esi
test eax, eax
je 0x4064d5
push 0x411fd4
push dword [0x41634c]
call esi
test eax, eax
je 0x4064d5
push 0x411770
push dword [0x41634c]
call esi
test eax, eax
je 0x4064d5
push dword [0x41634c]
push dword [0x416aac]
call fcn.0040e4de
pop ecx
mov dword [0x416aa8], eax
pop ecx
mov eax, dword [0x416aa8]
cmp eax, ebp
je 0x4067f7
mov ebx, dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
push eax
push ebp
mov edi, str.GENERAL
push str.OutputFolder
push edi
call ebx
mov dword [0x415028], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], ebp
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [0x415028]
mov esi, 0x104
sub eax, ebp
je 0x406576
dec eax
je 0x40655f
dec eax
jne 0x406583
push esi
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov dword [0x416ab4], eax
lea eax, [esp + 0x10]
push eax
push 5
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x406596
push dword [0x416ab4]
push dword [esp + 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov eax, dword [esp + 0x14]
push dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
jmp 0x406596
push esi
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov dword [0x416ab4], eax
lea eax, [esp + 0x10]
push eax
push 0x10
jmp 0x406534
mov eax, dword [0x416350]
cmp eax, ebp
je 0x406583
push ebp
push eax
jmp 0x40658a
push ebp
push dword [0x416aac]
call fcn.0040e83a
pop ecx
mov dword [0x416ab4], eax
pop ecx
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4065a4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [0x416aa8]
push esi
mov esi, 0x414f24
push esi
push str.sysrep.txt
push str.ReportFileName
push edi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
push esi
push dword [0x416ab4]
call fcn.0040e4de
pop ecx
mov dword [0x416ab0], eax
pop ecx
push dword [0x416aa8]
push ebp
push str.CreateMessageBox
push edi
call ebx
cmp eax, ebp
mov dword [0x41502c], eax
je 0x4067c1
push dword [0x416aa8]
lea ecx, [esp + 0x1c]
call fcn.0040d082
push str.MESSAGE
lea ecx, [esp + 0x1c]
call fcn.0040d0f3
mov esi, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], esi
call fcn.0040d0e5
cmp esi, ebp
je 0x40663a
push esi
mov esi, 0x415030
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
jmp 0x40664b
mov esi, 0x415030
push 0x414444
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push dword [0x416aa8]
push ebp
push str.MessageButtons
push edi
call ebx
push 0x186a0
push ebp
mov dword [0x415430], eax
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebp, eax
push 0xffffffffffffffff
mov ebx, str.RFNAME
push ebx
push esi
call fcn.0040e721
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4066b2
and byte [edi], 0
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
add edi, eax
push edi
push 0x414f24
push esi
push str._s_s_s
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push ebp
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0xffffffffffffffff
jmp 0x406674
push 0xffffffffffffffff
mov ebx, str.RFFOLDER
push ebx
push esi
call fcn.0040e721
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4066f8
and byte [edi], 0
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
add edi, eax
push edi
push dword [0x416ab4]
push esi
push str._s_s_s
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push ebp
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0xffffffffffffffff
jmp 0x4066b9
push 0xffffffffffffffff
mov ebx, str.RFPATH
push ebx
push esi
call fcn.0040e721
mov edi, eax
add esp, 0xc
test edi, edi
je 0x40673e
and byte [edi], 0
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
add edi, eax
push edi
push dword [0x416ab0]
push esi
push str._s_s_s
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push ebp
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0xffffffffffffffff
jmp 0x4066ff
mov edi, dword [sym.imp.KERNEL32.DLL_GlobalFree]
push ebp
call edi
mov eax, dword [0x415430]
or al, 0x40
push eax
push 0x411f38
push esi
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
je 0x406768
cmp eax, 7
jne 0x4067b7
mov eax, dword [0x416ab4]
cmp eax, esi
je 0x40677a
push eax
call edi
mov dword [0x416ab4], esi
mov eax, dword [0x416ab0]
cmp eax, esi
je 0x40678c
push eax
call edi
mov dword [0x416ab0], esi
mov eax, dword [0x416aac]
cmp eax, esi
je 0x40679e
push eax
call edi
mov dword [0x416aac], esi
mov eax, dword [0x416aa8]
cmp eax, esi
je 0x4067b0
push eax
call edi
mov dword [0x416aa8], esi
push esi
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
xor ebp, ebp
jmp 0x4067c7
mov edi, dword [sym.imp.KERNEL32.DLL_GlobalFree]
push dword [0x416aa8]
mov esi, str.POST_RUN
push ebp
push str.Email
push esi
call ebx
push dword [0x416aa8]
mov dword [0x415438], eax
push 1
push str.EmailCheckBox
push esi
call ebx
mov dword [0x415f48], eax
jmp 0x4067fd
mov edi, dword [sym.imp.KERNEL32.DLL_GlobalFree]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push ebp
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov esi, eax
push 0x65
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
push ebp
push 0x406900
push ebp
push 0x65
push esi
mov dword [0x416abc], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp byte [0x416ac0], 0
je 0x406875
cmp dword [0x415438], ebp
je 0x406875
call fcn.0040da0d
test eax, eax
je 0x406875
push dword [0x416ab0]
push 0x415f4c
push 0x415e44
push 0x415a44
push 0x415644
push 0x415540
push 0x41543c
call fcn.0040da17
add esp, 0x1c
call fcn.0040da12
mov eax, dword [0x416ab4]
cmp eax, ebp
je 0x406887
push eax
call edi
mov dword [0x416ab4], ebp
mov eax, dword [0x416ab0]
cmp eax, ebp
je 0x406899
push eax
call edi
mov dword [0x416ab0], ebp
mov eax, dword [0x416aac]
cmp eax, ebp
je 0x4068ab
push eax
call edi
mov dword [0x416aac], ebp
mov eax, dword [0x416aa8]
cmp eax, ebp
je 0x4068bd
push eax
call edi
mov dword [0x416aa8], ebp
mov ecx, 0x414df8
call fcn.0040cfbe
mov ecx, 0x414448
call fcn.0040cfbe
mov ecx, 0x414a14
call fcn.0040cfbe
mov ecx, 0x414da8
call fcn.0040cfbe
mov ecx, 0x414df4
call fcn.0040cfbe
call fcn.0040d867
call fcn.0040dfcb
push ebp
call dword [sym.imp.KERNEL32.DLL_ExitProcess]