Function at 0x40f8e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484266
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x4a55d0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], ecx
xor edi, edi
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x440], edx
mov dword [ebp - 0x444], edi
mov dword [ebp - 0x424], edi
mov byte [ebp - 4], 1
cmp esi, edi
je 0x40f9de
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
inc eax
cdq
push 2
push edx
push eax
call fcn.0043b7e0
mov edi, eax
add eax, 0x80000000
adc edx, ebx
mov dword [ebp - 0x438], edx
jne 0x40f9d6
cmp eax, 0xffffffff
ja 0x40f9d6
cmp edi, 0x400
jg 0x40f99a
push edi
call fcn.0040e570
add esp, 4
test al, al
je 0x40f99a
mov eax, edi
call fcn.0043a7d0
mov dword [ebp - 0x10], esp
mov ebx, esp
jmp 0x40f9a8
push edi
lea ecx, [ebp - 0x428]
call fcn.0040e660
mov ebx, eax
test ebx, ebx
je 0x40f9d0
push 0
push 0
push edi
push ebx
push 0xffffffffffffffff
push esi
push 0
push 3
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, ebx
mov ebx, dword [ebp - 0x428]
jmp 0x40f9d8
mov ebx, dword [ebp - 0x428]
xor eax, eax
test eax, eax
jne 0x40fa25
xor edi, edi
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x40f9f7
lea eax, [ebp - 0x424]
call fcn.0040dda0
cmp ebx, edi
je 0x40fa1b
jmp 0x40fa06
mov ebx, dword [ebp - 0x428]
mov esi, dword [ebx]
push ebx
mov dword [ebp - 0x428], esi
call fcn.00436803
add esp, 4
cmp esi, edi
jne 0x40fa00
mov eax, 0x8007000e
jmp 0x40fbcf
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x438], edi
test edi, edi
jne 0x40fa48
call fcn.0040ddb0
mov edi, eax
jmp 0x40fb93
mov ecx, dword [ebp - 0x42c]
mov edx, dword [ebp - 0x430]
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40fa6d
call fcn.0040ddb0
jmp 0x40fb80
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x40fa89
call fcn.0040ddb0
jmp 0x40fb80
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x430], esi
cmp eax, esi
jae 0x40face
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x40fab9
lea eax, [ebp - 0x424]
call fcn.0040dda0
lea ecx, [ebp - 0x428]
call fcn.00402110
mov eax, 0x8007000e
jmp 0x40fbcf
xor ecx, ecx
mov byte [ebp - 4], 2
ja 0x40fadb
cmp eax, 0xffffffff
jbe 0x40fae5
push 0x80070057
call fcn.00402580
cmp eax, 0x400
jbe 0x40fb26
lea ecx, [ebp - 0x424]
push ecx
call fcn.0040e490
jmp 0x40fb32
lea edx, [ebp - 0x420]
mov dword [ebp - 0x424], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x424]
test eax, eax
jne 0x40fb4f
mov dword [ebp - 0x428], 0x8007000e
jmp 0x40fb86
mov ecx, dword [ebp - 0x42c]
push esi
push ecx
push esi
push eax
call fcn.00405e20
mov edx, dword [ebp - 0x424]
mov eax, dword [ebp + 0x10]
add esp, 0x10
mov byte [edx + esi], 0
mov ecx, dword [ebp - 0x424]
push eax
lea edx, [ebp - 0x444]
call fcn.0040f7a0
mov dword [ebp - 0x428], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [ebp - 0x428]
lea ecx, [ebp - 0x420]
cmp dword [ebp - 0x424], ecx
je 0x40fbac
lea eax, [ebp - 0x424]
call fcn.0040dda0
test ebx, ebx
je 0x40fbcd
jmp 0x40fbb8
mov ebx, dword [ebp - 0x428]
mov esi, dword [ebx]
push ebx
mov dword [ebp - 0x428], esi
call fcn.00436803
add esp, 4
test esi, esi
jne 0x40fbb2
mov eax, edi
lea esp, [ebp - 0x45c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0043671a
mov esp, ebp
pop ebp
ret 0xc