Function at 0x10004d00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x10030e71
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x1003cb10]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1003cb10]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov eax, dword [esp + 0x168]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov esi, ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
movzx ecx, word [esp + 0x16c]
push 0x10035ffc
push ecx
push esi
mov dword [esp + 0x16c], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, ebx
je 0x10004f36
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
cmp ebp, ebx
je 0x10004f36
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x10004f36
lea edx, [edi + 1]
push edx
call fcn.100160e1
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x10004dd4
mov edi, dword [esp + 0x1c]
push edi
lea ecx, [esp + 0x24]
call fcn.10007130
lea esi, [esp + 0x20]
call fcn.10004c30
mov eax, edi
jmp 0x10004f6c
push edi
push ebp
push esi
mov dword [esi], ebx
call fcn.1001bcb0
add esp, 0xc
push 0x100361bc
push esi
call fcn.10016ff0
add esp, 8
mov ebp, eax
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
push 0x10036008
lea ecx, [esp + 0x18]
mov byte [esp + 0x164], 1
call fcn.100032b0
cmp ebp, ebx
mov byte [esp + 0x160], 2
je 0x10004efe
jmp 0x10004e34
mov esi, dword [esp + 0x18]
push 0x104
lea eax, [esp + 0x50]
push ebx
push eax
call fcn.100197b0
mov eax, ebp
sub eax, esi
add esp, 0xc
cmp eax, 0xff
jge 0x10004efe
push eax
lea ecx, [esp + 0x50]
push esi
push ecx
call fcn.1001bcb0
add esp, 0xc
lea eax, [ebp + 2]
push 0x100361bc
push eax
mov dword [esp + 0x20], eax
call fcn.10016ff0
mov ebp, eax
lea eax, [esp + 0x54]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10004e83
sub eax, edx
push eax
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x1c]
call fcn.100035b0
lea edi, [esp + 0x14]
call fcn.100069c0
mov ebx, edi
call fcn.10006940
call fcn.100068e0
mov edx, dword [esp + 0x14]
cmp dword [edx - 4], 1
jle 0x10004ecb
mov eax, dword [edx - 0xc]
push eax
mov ecx, edi
call fcn.100031c0
mov edx, dword [esp + 0x14]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10004ed0
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x38]
call fcn.10002570
lea ecx, [esp + 0x30]
push ecx
lea esi, [esp + 0x24]
call fcn.10007230
xor ebx, ebx
test ebp, ebp
jne 0x10004e30
mov byte [esp + 0x160], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10004f26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x160], bl
call fcn.10002020
mov esi, dword [esp + 0x1c]
push esi
lea ecx, [esp + 0x24]
call fcn.10007130
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x10004f6a
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
push ecx
call fcn.10003070
mov edx, dword [esp + 0x28]
add esp, 4
push edx
call fcn.1000a6ea
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.10015adf
add esp, 0x150
ret 8