Function at 0x4705c2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x493be8
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 0x47085f
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x47085f
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
ja 0x470604
xor eax, eax
jmp 0x47085f
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
xor edx, edx
cmp ebp, edx
jne 0x47061a
xor eax, eax
jmp 0x47085f
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], 0x471060
mov dword [esi + 0x10], 0x471080
mov dword [esi + 0x14], 0x4710d0
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.00470d40
test eax, eax
je 0x47084e
mov ecx, dword [esi + 8]
mov dword [esp + 0x60], ebp
cmp ecx, ebp
mov dword [esp + 0x5c], ebp
je 0x47069c
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 0x47069c
cmp dword [esp + 0x60], ebp
jne 0x4706a1
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.00470d80
test eax, eax
je 0x4707e0
push 0x1c
call sub.MFC42u.DLL_operatornew
add esp, 4
cmp eax, ebp
je 0x47070c
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 0x47070e
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 0x4707bc
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 0x47078a
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.004279c0
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x20], eax
jne 0x4707b8
mov dword [esp + 0x1c], ebp
cmp eax, ebp
jne 0x470766
mov esi, dword [esp + 0x18]
cmp esi, ebp
jbe 0x4707d9
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 0x4707c4
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x470853
mov eax, dword [esp + 0x20]
mov dword [esp + 0x50], 0xffffffff
cmp eax, ebp
je 0x470845
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 0x470814
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.00471490
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x20], eax
jne 0x470841
mov dword [esp + 0x1c], ebp
cmp eax, ebp
jne 0x4707f0
lea ecx, [esp + 0x10]
call fcn.00411680
cmp edi, ebp
je 0x47085b
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