Function at 0x4108c0
Capabilities:
Hide graphical window
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x41cdb8
push eax
mov eax, 0x19074
mov dword fs:[0], esp
call fcn.0041ba30
push ebx
push ebp
push esi
mov ebp, 1
push edi
mov edi, ecx
push ebp
mov dword [esp + 0x28], 0
mov byte [0x424b59], 0
call fcn.00410270
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push ebp
push 0
push 0
lea eax, [esp + 0x40]
push 0
push eax
call esi
test eax, eax
je 0x410948
mov al, byte [0x424b59]
test al, al
jne 0x410948
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebp
push 0
push 0
lea eax, [esp + 0x40]
push 0
push eax
call esi
test eax, eax
jne 0x410917
push 0x4247e8
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [edi + 0x594]
mov dword [esp + 0x1908c], ebp
test eax, eax
je 0x410ebc
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x41099b
lea ebx, [edi + 0xa0]
push 0x4247e8
mov ecx, ebx
call fcn.0041b4e0
push 0
mov ecx, ebx
call sub.MFC42.DLL_CWnd::ShowWindow
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [edi + 0x80]
mov ebx, 3
test eax, eax
je 0x410a1b
push 0x4247e8
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x4247e8
push ecx
mov byte [esp + 0x19094], 2
mov word [esp + 0x70], bx
mov dword [esp + 0x78], 0
call esi
add esp, 8
test eax, eax
je 0x4109fe
mov eax, dword [esp + 0x18]
push 0
push 0
lea edx, [esp + 0x70]
push 0
push edx
push eax
lea ecx, [edi + 0x60]
call fcn.0041b360
push 0
lea ecx, [edi + 0x60]
call sub.MFC42.DLL_CWnd::ShowWindow
lea ecx, [esp + 0x18]
mov byte [esp + 0x1908c], 1
call sub.MFC42.DLL_CString::CString
jmp 0x410a21
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x4247e8
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [edi + 0x5a4]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
mov byte [esp + 0x1909c], bl
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x19098], 1
call fcn.004103b0
lea ecx, [esp + 0x10]
call fcn.0041b5bc
mov ebp, dword [edi + 0x594]
mov byte [esp + 0x1908c], 4
mov dword [esp + 0x18], ebp
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight
mov edx, dword [esp + 0x10]
push 0x4247e8
push edx
call esi
add esp, 8
test eax, eax
je 0x410e76
lea eax, [esp + 0x50]
push 1
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push 0x4231d4
push eax
mov byte [esp + 0x19094], 5
call esi
add esp, 8
test eax, eax
je 0x410afc
lea ecx, [esp + 0x64]
push 1
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push 0x4231cc
push eax
call esi
add esp, 8
lea ecx, [esp + 0x64]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x410afe
mov bl, 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x1908c], 4
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
push 0x4247e8
test bl, bl
push edx
je 0x410bd3
call esi
add esp, 8
test eax, eax
jne 0x410b71
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x54]
mov eax, dword [eax - 8]
dec eax
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x19090], 6
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x54]
mov byte [esp + 0x1908c], 4
call sub.MFC42.DLL_CString::CString
push 0x5c
push 0x2f
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Replace
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
dec eax
push eax
lea eax, [esp + 0x5c]
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea eax, [edi + 0x5a4]
lea ecx, [esp + 0x64]
push eax
push ecx
mov byte [esp + 0x19098], 7
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x19090], 8
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x60]
mov byte [esp + 0x1908c], 7
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x1908c], 4
lea ecx, [esp + 0x58]
jmp 0x410c2b
call esi
add esp, 8
test eax, eax
jne 0x410bf7
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::operator
push 0x5c
push 0x2f
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
lea eax, [edi + 0x5a4]
push ecx
lea edx, [esp + 0x60]
push eax
push edx
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x19090], 9
call sub.MFC42.DLL_CString::operator
mov byte [esp + 0x1908c], 4
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CString::CString
push 0x5c
push 0x2f
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
mov eax, dword [esp + 0x10]
push eax
call fcn.00401e50
add esp, 4
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CFileFind::CFileFind
mov ecx, dword [esp + 0x10]
push 0
push ecx
lea ecx, [esp + 0x70]
mov byte [esp + 0x19094], 0xa
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x410e65
mov edx, dword [esp + 0x10]
push 0x423118
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
je 0x410e65
mov edx, dword [esp + 0x18]
xor eax, eax
mov al, byte [ebp]
mov ebp, dword [ebp + 4]
mov esi, eax
mov eax, dword [edx + 8]
xor ebx, ebx
mov ecx, esi
push ebx
and ecx, 0x7f
mov dword [esp + 0x30], eax
push eax
mov eax, dword [edi + 0x200]
sub ebp, ecx
push eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x2c], ebp
call fcn.00401040
add esp, 0xc
mov dword [esp + 0x28], ebx
test ebp, ebp
jbe 0x410e44
jmp 0x410cdb
mov esi, dword [esp + 0x30]
mov al, byte [0x424b59]
test al, al
jne 0x410e44
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
push esi
push ebx
push ecx
push edx
push 1
push 0x19000
lea eax, [esp + 0x9c]
push 1
push eax
mov ecx, edi
call fcn.0040fd70
mov esi, eax
cmp esi, ebp
jbe 0x410d31
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x84]
push ecx
push ebp
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
add ebx, esi
xor ebp, ebp
jmp 0x410d4e
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x84]
push eax
push esi
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
add ebx, esi
sub ebp, esi
mov ecx, dword [esp + 0x20]
cmp ecx, 0x64
jae 0x410d62
lea eax, [ebx + ebx*4]
lea eax, [eax + eax*4]
shl eax, 2
jmp 0x410d70
mov eax, 0x51eb851f
mul ecx
mov ecx, edx
mov eax, ebx
shr ecx, 5
xor edx, edx
div ecx
mov ecx, dword [esp + 0x28]
and eax, 0xff
cmp eax, ecx
je 0x410e3c
mov edx, dword [edi + 0x150]
push 0
push eax
push 0x401
push edx
mov dword [esp + 0x38], eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [edi + 0x150]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 0
push 0
lea ecx, [esp + 0x40]
push eax
push ecx
call esi
test eax, eax
je 0x410df3
mov al, byte [0x424b59]
test al, al
jne 0x410df3
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov ecx, dword [edi + 0x150]
push 1
push 0
push 0
lea edx, [esp + 0x40]
push ecx
push edx
call esi
test eax, eax
jne 0x410dbc
mov eax, dword [edi + 0x20]
push 1
push 0
push 0
lea ecx, [esp + 0x40]
push eax
push ecx
call esi
test eax, eax
je 0x410e3c
mov al, byte [0x424b59]
test al, al
jne 0x410e3c
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov ecx, dword [edi + 0x20]
push 1
push 0
push 0
lea edx, [esp + 0x40]
push ecx
push edx
call esi
test eax, eax
jne 0x410e08
test ebp, ebp
ja 0x410cd7
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
mov al, byte [0x424b59]
add esp, 4
test al, al
jne 0x410e8f
mov ebp, dword [esp + 0x18]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea ecx, [esp + 0x68]
mov byte [esp + 0x1908c], 4
call fcn.0041b74e
mov ebp, dword [ebp + 0x10c]
mov eax, dword [edi + 0x594]
cmp ebp, eax
mov dword [esp + 0x18], ebp
je 0x410ea0
jmp 0x410a77
lea ecx, [esp + 0x68]
mov byte [esp + 0x1908c], 4
call fcn.0041b74e
lea ecx, [esp + 0x10]
mov byte [esp + 0x1908c], 1
call sub.MFC42.DLL_CString::CString
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebp, 1
mov eax, dword [edi + 0x150]
test eax, eax
je 0x410f1c
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x150]
push ebp
push 0
push 0
lea edx, [esp + 0x40]
push ecx
push edx
call esi
test eax, eax
je 0x410f1c
mov al, byte [0x424b59]
test al, al
jne 0x410f25
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov edx, dword [edi + 0x150]
push ebp
push 0
push 0
lea eax, [esp + 0x40]
push edx
push eax
call esi
test eax, eax
jne 0x410ee6
mov al, byte [0x424b59]
test al, al
je 0x410f4e
mov ecx, dword [edi + 0x20]
push 0
push 0
push 0x12
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov esi, dword [esp + 0x19094]
push 0x4247e8
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x24], ebp
jmp 0x410f65
mov esi, dword [esp + 0x19094]
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x24], ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x1908c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x19084]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x19080
ret 4