Function at 0x10053040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ec405
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10138008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 8], 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], eax
jne 0x10053086
xor al, al
jmp 0x100533ae
lea eax, [esi + 0x2c]
mov dword [ebp - 0x3c], 0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x40], eax
call fcn.10007830
mov dword [ebp - 4], 0
mov edi, dword [esi + 4]
cmp edi, 1
jne 0x1005321b
lea ecx, [esi + 8]
call fcn.10004710
test al, al
jne 0x1005321b
push dword [ebp - 0x38]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x30]
push edi
push eax
mov ecx, esi
call fcn.100539d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.10004710
test al, al
je 0x100530f2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.10004720
jmp 0x100532b8
push 4
mov dword [ebp - 0x14], 0
call fcn.100bcc88
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 2
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x30]
push 3
push 1
push SysReAllocStringLen
push eax
lea ecx, [ebp - 0x14]
call fcn.10032600
test al, al
jne 0x1005317d
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1005316c
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1005315a
test eax, eax
je 0x1005315a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.100bccb8
add esp, 8
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.10004720
jmp 0x100532b8
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x14]
call fcn.10032760
test al, al
jne 0x100531c9
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x100531ac
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x100531ac
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100531ac
mov dword [esi], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.100325c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.10004720
jmp 0x100532b8
mov esi, dword [ebp - 0x48]
mov ecx, ebx
push esi
call fcn.10026eb0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push esi
push dword [ebx + 8]
lea ecx, [ebp - 0x14]
call fcn.100326f0
test al, al
je 0x10053211
cmp dword [ebp - 0x18], esi
jne 0x10053211
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.100325c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.10004720
jmp 0x1005339b
lea ecx, [ebp - 0x14]
call fcn.10032730
jmp 0x100531ac
cmp edi, 2
jne 0x100532b5
cmp dword [esi + 0x28], 0
je 0x100532b5
lea eax, [esi + 0x2c]
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x14]
call fcn.10007830
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x38]
call fcn.100052a0
mov edi, dword [ebp + 8]
push eax
movzx eax, di
push eax
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x10053271
mov byte [ebp - 4], al
lea ecx, [ebp - 0x14]
call fcn.10007860
jmp 0x100532b8
push ebx
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x100532a9
push ebx
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x100532a9
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x1005336f
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.10007860
mov edi, dword [ebp + 8]
push dword [ebp - 0x40]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.10007830
mov byte [ebp - 4], 5
mov eax, dword [0x1013eb64]
test al, 1
jne 0x10053303
or eax, 1
mov dword [0x1013eb64], eax
mov byte [ebp - 4], 6
mov dword [0x1013eb68], 0
call fcn.10041ca0
push 0x100f6fb0
call fcn.100bd126
add esp, 4
mov byte [ebp - 4], 5
mov eax, dword [0x1013eb68]
mov esi, 0x10000000
mov ecx, dword [ebp - 0x38]
mov eax, dword [eax + 0x44]
test eax, eax
cmovne esi, eax
call fcn.100052a0
push eax
movzx eax, di
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x1005335f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x1005335f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x1005335f
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x1005336f
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.10007860
xor bl, bl
jmp 0x1005339d
mov ecx, dword [ebp - 0x34]
push edi
call fcn.10026eb0
mov eax, dword [ebp - 0x34]
push edi
push ebx
push dword [eax + 8]
call fcn.100c0e00
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.10007860
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.10007860
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100bcc77
mov esp, ebp
pop ebp
ret 0xc