Function at 0x401eb0
Capabilities:
Extract resource via kernel32 functions
Hide graphical window

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4222cb
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x384
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
je 0x4020d4
push 0x42a114
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4020d4
lea ecx, [esp + 0x3c]
call fcn.00408bc0
lea eax, [esp + 0x3c]
mov dword [esp + 0x39c], ebp
mov dword [esp + 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x42c464
mov dword [esp + 0x4c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x42c498]
lea edx, [esp + 0x44]
push 0x42c464
mov dword [esp + 0x50], ecx
mov dword [0x42c498], edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x42c438]
call fcn.00402ef0
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 5
push 0x81
push esi
call edi
push 0xf0
push 0x81
push esi
mov ebx, eax
call edi
mov edi, eax
test edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
je 0x401f91
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebx, ebx
je 0x401fe9
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebp
push ebx
call fcn.00402620
push 0
mov edi, eax
push 0x4077b0
push 0
push edi
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
cmp edi, ebx
mov dword [esp + 0x14], eax
je 0x401fda
push edi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edi, dword [esp + 0x1c]
test ebp, ebp
je 0x401ffc
test edi, edi
je 0x401ffc
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4020c0
lea edx, [esp + 0x3c]
mov ecx, 0x42b3e8
push edx
call fcn.00401780
push 0
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
lea ecx, [esp + 0x28]
push 0
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4020b6
mov esi, dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov edi, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x42c438]
push 0x80
push eax
call esi
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x48]
push eax
call edi
test eax, eax
jne 0x4020a1
lea ecx, [esp + 0x20]
push ecx
call ebx
cmp dword [esp + 0x24], 0x100
jne 0x402096
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
push edx
push eax
push pe_nt_image_headers32
push ecx
call ebp
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
lea eax, [esp + 0x28]
push 0
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x402051
mov ecx, 0x42b3e8
call fcn.00401810
lea ecx, [esp + 0x3c]
mov dword [esp + 0x39c], 0xffffffff
call fcn.00409310
mov ecx, dword [esp + 0x394]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x390
ret 8