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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4323f0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x448090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00409460
mov eax, dword [0x448020]
mov ecx, 0x448020
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp + 8], edi
push 0
push 0x8b
mov dword [ebp - 4], 0
call fcn.00403480
add esp, 8
test eax, eax
je 0x408e66
push 0x8b
push eax
lea ecx, [ebp + 8]
call fcn.004033b0
mov edi, dword [ebp + 8]
push 0x416
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push dword [ebx + 0x1c]
mov esi, eax
push 0x30
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [0x448020]
mov ecx, 0x448020
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
push 0x43cde4
push 0x92
mov byte [ebp - 4], 1
push dword [0x44acdc]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push dword [0x44acdc]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x408f88
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x408f7f
push dword [ebp - 0x18]
push dword [0x44acdc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
shr ebx, 1
je 0x408f18
mov eax, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, 0xff
je 0x408f11
cmp cl, 0xfe
jne 0x408f18
dec ebx
add eax, 2
mov dword [ebp + 0xc], eax
lea edx, [ebx + 1]
test edx, edx
jns 0x408f29
push 0x80070057
call fcn.00402950
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x408f49
push edx
lea ecx, [ebp - 0x14]
call fcn.004026b0
mov esi, dword [ebp - 0x14]
lea edx, [ebx + 1]
push ebx
push dword [ebp + 0xc]
push edx
push esi
call fcn.0042056b
add esp, 0x10
cmp ebx, 0xffffffff
jne 0x408f6a
push dword [esi - 8]
push esi
call fcn.00420547
add esp, 8
mov ebx, eax
test ebx, ebx
js 0x408f1f
cmp ebx, dword [esi - 8]
jg 0x408f1f
mov dword [esi - 0xc], ebx
xor eax, eax
mov word [esi + ebx*2], ax
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x3fe
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x409ca0
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x3fe
push dword [ebx + 4]
mov dword [0x44abbc], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
push esi
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0x10]
push 0
push 2
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
mov eax, dword [ebp - 0x10]
push 0
push 0x3f4
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call ebx
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x409017
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x409035
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8