Function at 0x40a6a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
cmp dword [0x41a258], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
mov dword [ebp - 4], eax
jne 0x40a6c8
mov dword [0x41a258], 0
mov ecx, dword [ebp + 8]
push ecx
lea edx, [edi + 0xe4]
push edx
mov ebx, 0x41a228
call fcn.0040f680
add esp, 8
movzx ebx, ax
xor eax, eax
push eax
push eax
push 0x56080000
push eax
mov eax, dword [ebp - 4]
push 0x419be4
push eax
lea eax, [edi + 0xc4]
call fcn.0040f4b0
mov edx, dword [edi + 0xc4]
mov dword [edi + 0x2c], eax
mov eax, dword [edx + 8]
lea ecx, [edi + 0xc4]
call eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call fcn.0040ff70
lea ecx, [edi + 0x34]
lea esi, [eax + 4]
lea ebx, [ebp - 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
call fcn.0040ff00
mov esi, dword [ebp - 8]
lea edx, [edi + 0x38]
add esi, 0x10
lea ebx, [ebp - 4]
mov dword [ebp - 4], edx
call fcn.0040ff00
mov eax, dword [edi + 4]
push 1
push eax
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
mov ecx, dword [edi + 4]
push ecx
mov dword [edi + 0x5c], 0
call dword [sym.imp.USER32.dll_GetMenu]
mov edx, dword [edi + 4]
push 0xfffffffffffffff0
push edx
mov dword [edi + 0x58], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xfffaffff
push eax
mov dword [edi + 0x60], eax
mov eax, dword [edi + 4]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov dword [edi + 0x64], eax
call esi
mov edx, dword [edi + 4]
lea ecx, [edi + 0x8c]
push ecx
push edx
mov dword [edi + 0x68], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
fld1
xor eax, eax
fstp qword [edi + 0xb0]
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov dword [edi + 0xb8], 1
mov word [ebp - 0x210], ax
call sub.MSVCR100.dll_memset
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x416]
push eax
mov word [ebp - 0x418], dx
call sub.MSVCR100.dll_memset
add esp, 0x18
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.DemuCfgDemuCfg.ini
lea eax, [ebp - 0x210]
push eax
push str._s_s
lea ecx, [edi + 0x14c]
push 0x104
push ecx
call dword [sym.imp.MSVCR100.dll_swprintf_s]
mov edx, dword [edi + 4]
add esp, 0x14
push edx
add edi, 0xec
call fcn.0040c6c0
mov ebx, dword [ebp + 8]
push 0
call fcn.0040a480
mov eax, dword [ebx + 4]
push eax
lea edi, [ebx + 0x10c]
call fcn.0040c790
lea esi, [ebx + 0x804]
mov ebx, dword [ebx + 0x110]
call fcn.00410070
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x110]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push ecx
call ebx
mov edx, dword [edi + 0x2c]
push 0
push edx
call ebx
mov eax, dword [str.res_1.jpg]
push eax
lea ecx, [ebp - 0x210]
push ecx
push str._s_s
lea edx, [ebp - 0x418]
push 0x104
push edx
mov dword [0x41b110], 0
call dword [sym.imp.MSVCR100.dll_swprintf_s]
lea eax, [ebp - 0x418]
push 0x414b2c
push eax
call dword [sym.imp.MSVCR100.dll__wfopen]
add esp, 0x1c
test eax, eax
je 0x40a8ed
push esi
call fcn.00410820
test eax, eax
je 0x40a8ed
call fcn.00410740
mov ecx, dword [edi + 4]
push 0x40c370
push 0x64
push edi
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4