Function at 0x447610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x469a68
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x481410]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x34]
push 6
push 0
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], 0
mov dword [eax], 0
call fcn.00446f60
push 0x4701a0
push eax
call fcn.00446950
mov bl, al
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or ebp, 0xffffffff
add esp, 8
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44768f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4476ca
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esp + 0x28], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4476b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov ecx, dword [esp + 0x30]
cmp dword [ecx - 0xc], 7
jle 0x4476f4
add ecx, 0xe
push 0x5c
push ecx
call fcn.0044ed75
mov ecx, dword [esp + 0x38]
add esp, 8
test eax, eax
je 0x4476f4
sub eax, ecx
sar eax, 1
mov esi, eax
cmp esi, ebp
jne 0x4476f9
lea eax, [ecx - 0x10]
jmp 0x44769a
lea ecx, [esi + 1]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x38]
call fcn.004474d0
add esi, 0xfffffffa
push esi
push 6
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 1
call fcn.00446f60
mov byte [esp + 0x28], 2
test edi, edi
jne 0x447736
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x447759
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4477bc
lea eax, [ebx - 0x10]
mov byte [esp + 0x28], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44777a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44779b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4476a8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x4477eb
lea ecx, [esp + 0x14]
call fcn.0040c920
lea ecx, [esp + 0x18]
call fcn.0040c920
lea ecx, [esp + 0x30]
call fcn.0040c920
jmp 0x4476b4
mov ebp, dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
call ebp
mov ecx, dword [esp + 0x34]
push eax
mov dword [ecx], eax
call fcn.00449bd6
add esp, 4
push esi
push edi
mov ebx, eax
call ebp
mov edx, dword [esp + 0x1c]
push eax
push edx
push ebx
call fcn.0044ea10
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [esp + 0x14]
call fcn.0040c920
lea ecx, [esp + 0x18]
call fcn.0040c920
lea ecx, [esp + 0x30]
call fcn.0040c920
mov eax, ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret