Function at 0x470962
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x493d18
push eax
mov dword fs:[0], esp
mov eax, dword [esp + 0x18]
sub esp, 0x38
push ebx
mov ebx, dword [esp + 0x4c]
push ebp
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x5c]
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x470bff
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x470bff
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
ja 0x4709a4
xor eax, eax
jmp 0x470bff
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
xor edx, edx
cmp ebp, edx
jne 0x4709ba
xor eax, eax
jmp 0x470bff
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], edx
rep stosd dword es:[edi], eax
push 0xc
mov dword [esp + 0x5c], edx
mov dword [esi + 0xc], 0x471470
mov dword [esi + 0x10], 0x471490
mov dword [esi + 0x14], 0x4714e0
call sub.MFC42u.DLL_operatornew
mov edi, eax
add esp, 4
lea edx, [esp + 0x24]
mov ecx, esi
mov dword [edi], ebp
xor ebp, ebp
push edx
push edi
mov dword [edi + 8], ebx
mov dword [edi + 4], ebp
call fcn.00471150
test eax, eax
je 0x470bee
mov ecx, dword [esi + 8]
mov dword [esp + 0x60], ebp
cmp ecx, ebp
mov dword [esp + 0x5c], ebp
je 0x470a3c
mov eax, dword [ecx]
lea edx, [esp + 0x5c]
push edx
lea edx, [esp + 0x64]
push edx
mov edx, dword [esp + 0x48]
push edx
call dword [eax + 4]
test eax, eax
je 0x470a3c
cmp dword [esp + 0x60], ebp
jne 0x470a41
mov byte [esp + 0x40], 0
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x14], ebp
cmp ebx, ebp
mov dword [esp + 0x18], ebp
setne bl
mov byte [esp + 0x60], bl
mov al, byte [esp + 0x60]
mov byte [esp + 0x10], al
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov ecx, dword [esp + 0x60]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
push edi
mov ecx, esi
mov dword [esp + 0x60], ebp
call fcn.00471190
test eax, eax
je 0x470b80
push 0x1c
call sub.MFC42u.DLL_operatornew
add esp, 4
cmp eax, ebp
je 0x470aac
mov cl, byte [esp + 0x60]
mov dword [eax + 0xc], ebp
mov byte [eax + 8], cl
mov dword [eax + 0x10], ebp
mov dword [eax + 0x14], ebp
mov dword [eax + 0x18], ebp
jmp 0x470aae
xor eax, eax
mov dword [eax], edi
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0x14]
mov dword [eax + 0x14], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x18]
mov dword [eax + 0x18], edx
mov dword [esp + 0x20], ecx
mov cl, byte [esp + 0x40]
mov dword [esp + 0x58], eax
mov byte [eax + 4], cl
mov byte [eax + 5], bl
mov eax, dword [esp + 0x20]
cmp eax, ebp
mov dword [esp + 0x50], 0xffffffff
je 0x470b5c
mov edx, dword [esp + 0x1c]
lea esi, [edx + eax - 1]
mov eax, 0x21fb7813
mul esi
mov ecx, esi
mov eax, dword [esp + 0x18]
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 6
cmp eax, ecx
ja 0x470b2a
sub ecx, eax
mov eax, esi
xor edx, edx
mov esi, 0x71
push 1
div esi
lea eax, [edx + edx*8]
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + ecx*4]
lea ecx, [ecx + eax*4]
call fcn.00460940
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x20], eax
jne 0x470b58
mov dword [esp + 0x1c], ebp
cmp eax, ebp
jne 0x470b06
mov esi, dword [esp + 0x18]
cmp esi, ebp
jbe 0x470b79
mov edx, dword [esp + 0x14]
dec esi
mov eax, dword [edx + esi*4]
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
cmp esi, ebp
ja 0x470b64
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x470bf3
mov eax, dword [esp + 0x20]
mov dword [esp + 0x50], 0xffffffff
cmp eax, ebp
je 0x470be5
mov edx, dword [esp + 0x1c]
lea esi, [edx + eax - 1]
mov eax, 0x21fb7813
mul esi
mov ecx, esi
mov eax, dword [esp + 0x18]
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 6
cmp eax, ecx
ja 0x470bb4
sub ecx, eax
mov eax, esi
xor edx, edx
mov esi, 0x71
push ebp
div esi
lea eax, [edx + edx*8]
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + ecx*4]
lea ecx, [ecx + eax*4]
call fcn.004718a0
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x20], eax
jne 0x470be1
mov dword [esp + 0x1c], ebp
cmp eax, ebp
jne 0x470b90
lea ecx, [esp + 0x10]
call fcn.0043a880
cmp edi, ebp
je 0x470bfb
push edi
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 0xc