Function at 0x40b7c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432660
mov eax, dword fs:[0]
push eax
sub esp, 8
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 esi, ecx
mov dword [ebp - 0x10], esi
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 + 0xc], edi
mov dword [ebp - 4], 0
cmp dword [esi + 0x64], 0
mov ecx, str.ShowEULA
mov eax, 0x43d104
cmove eax, ecx
push eax
call fcn.00402990
add esp, 4
xor eax, eax
cmp dword [esi + 0x64], eax
push 0x43cde4
setne al
add eax, 0x90
push eax
push dword [0x44acdc]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push dword [0x44acdc]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b908
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40b8ff
push dword [ebp + 8]
push dword [0x44acdc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
shr esi, 1
je 0x40b89a
mov al, byte [ebx]
cmp al, 0xff
je 0x40b896
cmp al, 0xfe
jne 0x40b89a
dec esi
add ebx, 2
lea edx, [esi + 1]
test edx, edx
jns 0x40b8ab
push 0x80070057
call fcn.00402950
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, edx
or eax, ecx
jge 0x40b8cb
push edx
lea ecx, [ebp + 0xc]
call fcn.004026b0
mov edi, dword [ebp + 0xc]
lea edx, [esi + 1]
push esi
push ebx
push edx
push edi
call fcn.0042056b
add esp, 0x10
cmp esi, 0xffffffff
jne 0x40b8ea
push dword [edi - 8]
push edi
call fcn.00420547
add esp, 8
mov esi, eax
test esi, esi
js 0x40b8a1
cmp esi, dword [edi - 8]
jg 0x40b8a1
mov dword [edi - 0xc], esi
xor eax, eax
mov word [edi + esi*2], ax
mov esi, dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [0x448020]
mov ecx, 0x448020
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
xor eax, eax
mov byte [ebp - 4], 1
cmp dword [esi + 0x64], eax
lea ecx, [ebp + 8]
setne al
lea eax, [eax*2 + 0x88]
push eax
push dword [0x44acdc]
call fcn.004033b0
push 0x416
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push dword [esi + 0x14]
mov ebx, eax
push 0x30
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [ebp + 8]
push esi
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
call ebx
mov eax, dword [ebp - 0x10]
push edi
push 0x409
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call ebx
mov eax, dword [ebp - 0x10]
push 0x409
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
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 0x40b9bc
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 0x40b9da
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, 1
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