Function at 0x404870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push esi
push edi
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov esi, eax
push 0x71
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40491c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40491c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x404912
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebx + 0x78]
mov edx, dword [ebx + 0x74]
push ecx
mov ecx, dword [ebp - 8]
push edx
push ecx
call fcn.00404470
mov ecx, dword [eax]
add esp, 0xc
mov edi, 4
test cl, 2
je 0x404906
mov edx, dword [eax + 4]
lea edi, [eax + 8]
mov dword [ebp - 0x10], edi
lea edi, [edx + 8]
mov edx, dword [edi + eax]
add edi, 4
mov dword [ebp - 8], edx
lea edx, [edi + eax]
add edi, dword [ebp - 8]
mov dword [ebp - 0xc], edx
test cl, 1
je 0x404912
lea eax, [edi + eax + 4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0xa
push 0x6d
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x404a33
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x404a33
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x404a29
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebx + 0x78]
mov ecx, dword [ebx + 0x74]
push edx
mov edx, dword [ebp - 0x18]
push ecx
push edx
call fcn.00404470
movzx ecx, byte [eax]
mov edx, dword [ebx + 0x2c]
add esp, 0xc
inc eax
push eax
push edx
mov dword [ebx + 0x64], ecx
call fcn.00401400
mov edi, eax
xor eax, eax
add esp, 8
mov dword [ebp - 0x18], edi
cmp edi, eax
je 0x404a22
push eax
push eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov eax, edi
call fcn.00403360
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.004034c0
mov eax, dword [0x4080b4]
mov edx, dword [eax]
add esp, 8
push eax
mov eax, dword [edx + 8]
call eax
push 0xc
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0xc]
push edx
push ecx
xor esi, esi
mov edi, eax
mov dword [ebx + 0x68], eax
call fcn.00404830
mov edx, dword [ebx + 0x68]
mov eax, dword [edx]
mov esi, dword [ebp - 0x18]
add esp, 0xc
push esi
mov dword [eax + 0xc], 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebx + 0x68]
push eax
push esi
push ecx
mov esi, 1
call fcn.00404830
mov esi, dword [ebp - 0x1c]
add esp, 0xc
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0xa
push 0x70
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x404b2f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x404b2f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x404b25
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebx + 0x78]
mov edx, dword [ebx + 0x74]
push ecx
mov ecx, dword [ebp - 0x20]
push edx
push ecx
call fcn.00404470
mov edx, dword [ebx + 0x2c]
mov edi, eax
add esp, 0xc
push edi
push edx
mov dword [ebp - 0x20], edi
call fcn.00401400
mov esi, eax
add esp, 8
test esi, esi
je 0x404b0e
push 0x10
push 8
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov eax, dword [ebx + 0x68]
test eax, eax
je 0x404ae6
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov eax, dword [ebx + 0x68]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x10], 1
push esi
mov dword [ebx + 0x68], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebx + 0x68]
push eax
push esi
mov esi, dword [ebp - 0x10]
neg esi
sbb esi, esi
push ecx
and esi, 2
call fcn.00404830
mov edi, dword [ebp - 0x20]
add esp, 0xc
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret