Function at 0x470440
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3e74
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x4dbe18]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0x85], 0
mov dword [ebp - 0xa4], ebx
push 0x4bd8ac
mov dword [ebp - 4], ebx
mov ecx, dword [0x4e3918]
push 0x6c
push ecx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
mov dword [ebp - 0xa0], esi
cmp esi, ebx
je 0x47082d
mov edx, dword [0x4e3918]
push esi
push edx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
mov dword [ebp - 0xa4], edi
cmp edi, ebx
je 0x470822
mov eax, dword [0x4e3918]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov esi, eax
inc esi
cmp esi, 0xf4240
jle 0x4704f1
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
xor al, al
jmp 0x470833
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00480fe5
mov ebx, eax
add esp, 4
mov dword [ebp - 0x98], ebx
test ebx, ebx
je 0x470822
lea eax, [esi + esi]
push eax
push 0
push ebx
call fcn.0048f0a0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
dec esi
push esi
push eax
push ebx
call fcn.00491f60
mov ecx, 0xfeff
add esp, 0xc
mov esi, ebx
cmp word [ebx], cx
jne 0x47054d
lea esi, [ebx + 2]
lea edx, [ebp - 0xbc]
push edx
call fcn.004688d0
push esi
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 1
call fcn.00470b20
xor eax, eax
add esp, 4
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0xac]
mov edi, dword [ebp - 0xb0]
mov ecx, esi
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x94], 0
je 0x4707c8
xor ebx, ebx
mov dword [ebp - 0x90], ebx
jmp 0x4705e2
mov esi, dword [ebp - 0xac]
mov edi, dword [ebp - 0xb0]
mov ebx, dword [ebp - 0x90]
sub esi, edi
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [ebp - 0x94], ecx
jb 0x47060a
call fcn.0048b3f2
mov edi, dword [ebp - 0xb0]
cmp dword [ebx + edi + 0x18], 8
jb 0x470617
mov eax, dword [ebx + edi + 4]
jmp 0x47061b
lea eax, [ebx + edi + 4]
xor edx, edx
mov ecx, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], dx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x470634
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x4c]
call fcn.004052b0
push 1
push 0x4c3fcc
xor eax, eax
mov edx, esi
mov byte [ebp - 4], 3
call fcn.00413e60
push 1
mov esi, eax
push 0x4c3fd0
xor eax, eax
lea edx, [ebp - 0x4c]
call fcn.00413e60
push 1
mov edi, eax
push 0x4bef74
xor eax, eax
lea edx, [ebp - 0x4c]
call fcn.00413e60
mov ebx, eax
test esi, esi
jne 0x4706dd
cmp edi, 0xffffffff
je 0x4706dd
lea eax, [ebp - 0x4c]
lea edx, [esi + 1]
lea ecx, [edi - 1]
push eax
lea esi, [ebp - 0x84]
call fcn.00472780
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.00404cb0
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00404970
cmp dword [ebp - 0x18], 8
mov esi, dword [ebp - 0x2c]
jae 0x4706cd
lea esi, [ebp - 0x2c]
mov edi, dword [ebp - 0x8c]
call fcn.00470860
jmp 0x47077c
cmp ebx, 0xffffffff
je 0x47078c
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, ebx
xor edx, edx
lea esi, [ebp - 0x84]
call fcn.00472780
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x38]
lea edx, [ebx + 1]
push eax
lea esi, [ebp - 0x68]
call fcn.00472780
mov byte [ebp - 4], 6
mov edi, dword [ebp - 0x64]
mov esi, 8
cmp dword [ebp - 0x50], esi
jae 0x470723
lea edi, [ebp - 0x64]
mov ecx, dword [ebp - 0x80]
cmp dword [ebp - 0x6c], esi
jae 0x47072e
lea ecx, [ebp - 0x80]
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x470739
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x8c]
push eax
push edx
call fcn.004708e0
cmp dword [ebp - 0x50], esi
jb 0x470757
mov eax, dword [ebp - 0x64]
push eax
call fcn.00480ff0
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], cx
cmp dword [ebp - 0x6c], esi
jb 0x47077c
mov edx, dword [ebp - 0x80]
push edx
call fcn.00480ff0
add esp, 4
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], 8
jb 0x4707a2
mov eax, dword [ebp - 0x48]
push eax
jmp 0x47079a
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], 8
jb 0x4707a2
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00480ff0
add esp, 4
mov eax, dword [ebp - 0x94]
add dword [ebp - 0x90], 0x1c
inc eax
mov dword [ebp - 0x94], eax
cmp eax, dword [ebp - 0x9c]
jb 0x4705d0
mov ebx, dword [ebp - 0x98]
push ebx
call fcn.00480ff0
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax + 0x10]
sub edx, dword [eax + 0xc]
add esp, 4
sar edx, 2
test edx, edx
jbe 0x4707eb
mov byte [ebp - 0x85], 1
cmp dword [ebp - 0x18], 8
jb 0x4707fd
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00480ff0
add esp, 4
xor ecx, ecx
lea esi, [ebp - 0xbc]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
call fcn.00408bf0
mov edi, dword [ebp - 0xa4]
test edi, edi
je 0x47082d
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov al, byte [ebp - 0x85]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048ac3c
mov esp, ebp
pop ebp
ret 4