Function at 0x41b4f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb725
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x5000a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0xc]
mov dword [edi + 0xa0], esi
call fcn.00404d30
mov ecx, eax
test ecx, ecx
je 0x41b863
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push dword [ebp + 8]
push str.rid_d_type_d
push eax
call fcn.0041fc40
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
mov dword [ebp + 0xc], eax
call fcn.00404470
add esp, 0x14
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 1
call fcn.0042a750
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
cmp dword [eax + 0x68], 0
jne 0x41b5d8
push ecx
lea eax, [ebx - 0x10]
mov esi, esp
push eax
mov dword [ebp - 0x20], esi
call fcn.00404470
mov ecx, dword [ebp - 0x18]
add esp, 4
add eax, 0x10
add ecx, 0x30
mov dword [esi], eax
call fcn.0042f9b0
mov esi, eax
test esi, esi
je 0x41b5d8
mov byte [ebp - 4], 0
or ebx, 0xffffffff
mov edx, dword [ebp - 0x10]
mov ecx, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x41b5cd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [edi + 0x90], esi
jmp 0x41b7f0
push ecx
lea eax, [ebx - 0x10]
mov esi, esp
push eax
mov dword [ebp - 0x20], esi
call fcn.00404470
mov ecx, dword [ebp - 0x18]
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.0042f9b0
mov byte [ebp - 4], 0
or ebx, 0xffffffff
mov edx, dword [ebp - 0x10]
mov esi, eax
mov ecx, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x41b61a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [edi + 0x90], esi
test esi, esi
jne 0x41b7f0
mov eax, dword [edi + 0xa0]
cmp eax, 2
jne 0x41b687
mov eax, dword [ebp + 8]
push 0x2000
push esi
push esi
push esi
movzx eax, ax
push eax
push dword [0x503bb0]
call dword [sym.imp.USER32.dll_LoadImageW]
push eax
push ecx
mov esi, esp
mov dword [ebp + 8], esp
push dword [ebp + 0xc]
mov dword [edi + 0x90], eax
mov dword [ebp - 0x20], esi
call fcn.00404470
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 3
call fcn.0042a750
mov ecx, eax
mov byte [ebp - 4], 0
call fcn.0042a8d0
jmp 0x41b7f0
cmp eax, 3
jne 0x41b720
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push ecx
mov byte [ebp - 4], 4
mov ecx, esp
mov eax, dword [ebp + 8]
movzx eax, ax
push ecx
mov dword [ecx], eax
mov eax, esp
lea ecx, [ebp - 0x1c]
mov dword [eax], 0x4e5cfc
call fcn.00420120
test al, al
je 0x41b6ef
push dword [ebp - 0x18]
push dword [0x503bb0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x1c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ecx
mov edx, esi
mov ecx, eax
call fcn.0041b1d0
add esp, 4
mov dword [edi + 0x90], eax
push dword [edi + 0x90]
push ecx
mov esi, esp
mov dword [ebp + 8], esp
push dword [ebp + 0xc]
mov dword [ebp - 0x20], esi
call fcn.00404470
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 5
call fcn.0042a750
mov byte [ebp - 4], 4
jmp 0x41b7b4
cmp eax, 4
jne 0x41b7cb
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push ecx
mov byte [ebp - 4], 6
mov ecx, esp
mov eax, dword [ebp + 8]
movzx eax, ax
push ecx
mov dword [ecx], eax
mov eax, esp
lea ecx, [ebp - 0x1c]
mov dword [eax], 0x4e5d04
call fcn.00420120
test al, al
je 0x41b788
push dword [ebp - 0x18]
push dword [0x503bb0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x1c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ecx
mov edx, esi
mov ecx, eax
call fcn.0041b1d0
add esp, 4
mov dword [edi + 0x90], eax
push dword [edi + 0x90]
push ecx
mov esi, esp
mov dword [ebp + 8], esp
push dword [ebp + 0xc]
mov dword [ebp - 0x20], esi
call fcn.00404470
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 7
call fcn.0042a750
mov byte [ebp - 4], 6
mov ecx, eax
call fcn.0042a8d0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41b7f0
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x41b7f0
cmp eax, 1
jne 0x41b7f0
push 0
push 0x30
push 0x30
push eax
mov eax, dword [ebp + 8]
movzx eax, ax
push eax
push dword [0x503bb0]
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [edi + 0xa4], eax
mov eax, dword [edi + 0x90]
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0
test eax, eax
jne 0x41b812
xor ecx, ecx
jmp 0x41b823
lea ecx, [ebp - 0x38]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
movzx ecx, word [ebp - 0x26]
mov edx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, 0x20
mov dword [ebp - 4], 0xffffffff
sete al
mov dword [edi + 0x8c], eax
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41b84d
mov ecx, dword [edx]
push edx
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
push 0x80004005
call fcn.00404b10
int3