Function at 0x4943e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546086
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x59e074]
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 ebx, ecx
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
jne 0x494420
xor al, al
jmp 0x494654
lea esi, [ebx + 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], esi
mov ecx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
je 0x494446
mov eax, dword [esi]
test eax, eax
je 0x494446
push eax
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp eax, 1
jne 0x494525
lea ecx, [ebx + 8]
call fcn.004045b0
test al, al
jne 0x494482
push dword [ebp - 0x1c]
mov ecx, ebx
push dword [ebp + 8]
call fcn.004948b0
mov bl, al
test bl, bl
jne 0x494637
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], esi
test esi, esi
je 0x49449d
mov eax, dword [esi]
test eax, eax
je 0x49449d
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 2
mov eax, dword [0x5a51b0]
test al, 1
jne 0x4944d6
or eax, 1
mov dword [0x5a51b0], eax
mov byte [ebp - 4], 3
mov dword [0x5a51b4], 0
call fcn.00470450
push 0x5500d0
call fcn.00509dbc
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [0x5a51b4]
mov ebx, 0x400000
push 0x56ba98
mov eax, dword [eax + 0x44]
test eax, eax
cmovne ebx, eax
mov eax, dword [ebp + 8]
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x4945cc
mov byte [ebp - 4], 0
test esi, esi
je 0x49451e
mov eax, dword [esi]
test eax, eax
je 0x494517
push eax
call edi
mov dword [ebp - 0x14], 0
xor bl, bl
jmp 0x494637
cmp eax, 2
jne 0x494482
cmp dword [ebx + 0x28], 0
je 0x494482
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], esi
test esi, esi
je 0x49454f
mov eax, dword [esi]
test eax, eax
je 0x49454f
push eax
call ecx
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push 0x56ba98
movzx eax, ax
push eax
push dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x494590
mov byte [ebp - 4], 0
test esi, esi
je 0x494482
mov eax, dword [esi]
test eax, eax
je 0x494584
push eax
call edi
mov dword [ebp - 0x14], 0
jmp 0x494482
push eax
push dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x49456f
push dword [ebp - 0x20]
push dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x49456f
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x4945c7
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x49456f
push dword [ebp - 0x24]
jmp 0x49460d
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x494506
push dword [ebp - 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x494506
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x49460a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x494506
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.0040a670
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov byte [ebp - 4], 0
test esi, esi
je 0x494635
mov eax, dword [esi]
test eax, eax
je 0x49462e
push eax
call edi
mov dword [ebp - 0x14], 0
mov bl, 1
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x494652
mov eax, dword [esi]
test eax, eax
je 0x49464b
push eax
call edi
mov dword [ebp - 0x18], 0
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.00509af6
mov esp, ebp
pop ebp
ret 8