Function at 0x474c54
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc8
mov eax, 0x4e26ba
call fcn.004b5257
xor ebx, ebx
mov dword [ebp - 0x90], ecx
mov byte [ebp - 0x81], bl
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 4], ebx
push ecx
movzx ecx, word [ebp + 0xc]
mov eax, esp
mov dword [ebp - 0x8c], esp
push ecx
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov eax, esp
mov dword [eax], ecx
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x8c], esp
call fcn.00467e58
cmp al, bl
je 0x474f43
push dword [ebp - 0x94]
push dword [0x541380]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
inc esi
cmp esi, 0xf4240
jle 0x474ce6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.00467e9a
mov al, bl
call fcn.004b52da
ret 8
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b1800
mov edi, eax
pop ecx
mov dword [ebp - 0x8c], edi
cmp edi, ebx
je 0x474f43
lea eax, [esi + esi]
push eax
push ebx
push edi
call fcn.004b4620
add esp, 0xc
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_LockResource]
dec esi
push esi
push eax
push edi
call fcn.004b4a20
mov eax, 0xfeff
add esp, 0xc
mov esi, edi
cmp word [edi], ax
jne 0x474d42
lea esi, [edi + 2]
lea ecx, [ebp - 0xb8]
call fcn.0048d48e
mov byte [ebp - 4], 1
push 0x4fdba8
lea eax, [ebp - 0xb8]
push eax
push esi
call fcn.00473e97
add esp, 0xc
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 7
call fcn.0040daa0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xa8]
sub eax, dword [ebp - 0xac]
push 0x1c
cdq
pop ecx
idiv ecx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0xa0], eax
cmp eax, ebx
jbe 0x474f05
push dword [ebp - 0x88]
lea ecx, [ebp - 0xb8]
call fcn.00481292
cmp dword [eax + 0x18], 8
jb 0x474dbc
mov eax, dword [eax + 4]
jmp 0x474dbf
add eax, 4
push eax
lea ecx, [ebp - 0x48]
call fcn.0042b420
mov byte [ebp - 4], 3
push ebx
push 0x50151c
lea ecx, [ebp - 0x48]
call fcn.0042b460
push ebx
push 0x501518
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x9c], eax
call fcn.0042b460
push ebx
push 0x501514
lea ecx, [ebp - 0x48]
mov esi, eax
call fcn.0042b460
mov edi, eax
cmp dword [ebp - 0x9c], ebx
jne 0x474e5c
cmp esi, 0xffffffff
je 0x474e5c
dec esi
push esi
push 1
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x48]
call fcn.004481f5
mov byte [ebp - 4], 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040d3a0
mov byte [ebp - 4], 3
push ebx
push 1
lea ecx, [ebp - 0xd4]
call fcn.0040d590
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x474e4e
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x90]
push eax
call fcn.00471f77
jmp 0x474ed8
cmp edi, 0xffffffff
je 0x474ed8
push edi
push ebx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x48]
call fcn.004481f5
mov byte [ebp - 4], 5
push dword [ebp - 0x34]
inc edi
push edi
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x48]
call fcn.004481f5
mov byte [ebp - 4], 6
cmp dword [ebp - 0x68], 8
mov edx, dword [ebp - 0x7c]
jae 0x474e94
lea edx, [ebp - 0x7c]
cmp dword [ebp - 0x4c], 8
mov ecx, dword [ebp - 0x60]
jae 0x474ea0
lea ecx, [ebp - 0x60]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x474eac
lea eax, [ebp - 0x28]
push edx
push ecx
mov ecx, dword [ebp - 0x90]
push eax
call fcn.0047475e
mov byte [ebp - 4], 5
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.0040d590
mov byte [ebp - 4], 3
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.0040d590
mov byte [ebp - 4], 2
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.0040d590
inc dword [ebp - 0x88]
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebp - 0xa0]
jb 0x474da0
mov edi, dword [ebp - 0x8c]
push edi
call fcn.004b5d21
mov eax, dword [ebp - 0x90]
pop ecx
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
sar ecx, 2
test ecx, ecx
jbe 0x474f26
mov byte [ebp - 0x81], 1
mov byte [ebp - 4], 1
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040d590
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xb8]
call fcn.004679ad
mov bl, byte [ebp - 0x81]
jmp 0x474ccd