Function at 0x451290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd570
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4fe0a8]
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 edi, ecx
mov dword [ebp - 0x230], edi
mov eax, dword [edi + 0x170]
lea esi, [edi + 0x170]
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
movq qword [ebp - 0x224], xmm0
cmp eax, dword [esi + 4]
jne 0x4513b0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x451350
push 0xa
push 0xa78
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x451350
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x451350
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 4]
mov dword [ebp - 0x22c], 0xa78
cmp eax, dword [esi + 8]
je 0x451341
mov dword [eax], 0xa78
add dword [esi + 4], 4
jmp 0x451350
lea ecx, [ebp - 0x22c]
push ecx
push eax
mov ecx, esi
call fcn.00403b20
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x4513b0
push 0xa
push 0xa79
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4513b0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4513b0
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 4]
mov dword [ebp - 0x22c], 0xa79
cmp eax, dword [esi + 8]
je 0x4513a1
mov dword [eax], 0xa79
add dword [esi + 4], 4
jmp 0x4513b0
lea ecx, [ebp - 0x22c]
push ecx
push eax
mov ecx, esi
call fcn.00403b20
push esi
lea ecx, [ebp - 0x224]
call fcn.00402fe0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x224]
mov ebx, dword [ebp - 0x220]
cmp esi, ebx
jne 0x451414
test esi, esi
je 0x45140a
mov ecx, dword [ebp - 0x21c]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x451400
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x451684
push ecx
push esi
call fcn.0049cf67
add esp, 8
mov eax, 0x80004005
jmp 0x451663
mov eax, dword [esi]
mov dword [ebp - 0x228], eax
mov eax, ebx
sub eax, esi
sar eax, 2
cmp eax, 1
jbe 0x451464
call fcn.00473eb0
mov edx, dword [0x513514]
mov eax, esi
mov ecx, dword [eax]
cmp ecx, 0xa78
jne 0x45144d
test edx, edx
je 0x45145d
mov ebx, ecx
mov dword [ebp - 0x228], ebx
jmp 0x45146a
cmp ecx, 0xa79
jne 0x45145d
test edx, edx
je 0x45150d
add eax, 4
cmp eax, ebx
jne 0x451435
mov ebx, dword [ebp - 0x228]
mov eax, dword [edi + 0xb0]
xor edx, edx
mov ecx, dword [edi + 0xac]
sub eax, ecx
sar eax, 6
mov dword [ebp - 0x234], edx
test eax, eax
je 0x451632
mov edi, dword [ebp - 0x230]
xor eax, eax
mov dword [ebp - 0x238], eax
nop dword [eax]
add eax, ecx
mov dword [ebp - 0x22c], eax
cmp dword [eax], ebx
jne 0x45159a
cmp dword [eax + 0x1c], 8
lea ebx, [eax + 8]
mov eax, ebx
jb 0x4514bd
mov eax, dword [ebx]
push 0x4e6e28
push eax
add edi, 0x10c
call fcn.004b0407
add esp, 8
test eax, eax
jne 0x45151d
cmp dword [edi + 0x14], 8
jb 0x4514dd
mov edi, dword [edi]
mov eax, dword [ebp - 0x230]
push dword [eax + 0x188]
mov eax, dword [ebp - 0x22c]
push edi
push dword [eax + 4]
call fcn.00458550
mov edi, eax
test edi, edi
js 0x4515c8
mov edi, dword [ebp - 0x230]
jmp 0x45158e
mov ebx, 0xa79
mov dword [ebp - 0x228], ebx
jmp 0x45146a
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0049edc0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x45153b
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004b065b
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x451558
mov ebx, dword [ebx]
push ebx
lea eax, [ebp - 0x218]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edi, dword [ebp - 0x230]
lea eax, [ebp - 0x218]
push dword [edi + 0x188]
push eax
mov eax, dword [ebp - 0x22c]
push dword [eax + 4]
call fcn.00458550
mov ebx, eax
test ebx, ebx
js 0x4515ff
mov ebx, dword [ebp - 0x228]
mov edx, dword [ebp - 0x234]
mov eax, dword [edi + 0xb0]
inc edx
mov ecx, dword [edi + 0xac]
sub eax, ecx
add dword [ebp - 0x238], 0x40
sar eax, 6
mov dword [ebp - 0x234], edx
cmp edx, eax
jae 0x451632
mov eax, dword [ebp - 0x238]
jmp 0x4514a0
mov ecx, dword [ebp - 0x21c]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4515f1
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x451684
push ecx
push esi
call fcn.0049cf67
add esp, 8
mov eax, edi
jmp 0x451663
mov ecx, dword [ebp - 0x21c]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x451624
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45167f
push ecx
push esi
call fcn.0049cf67
add esp, 8
mov eax, ebx
jmp 0x451663
mov ecx, dword [ebp - 0x21c]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x451657
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x451684
push ecx
push esi
call fcn.0049cf67
add esp, 8
xor eax, eax
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.0049d3dd
mov esp, ebp
pop ebp
ret
call fcn.004a1aef
call fcn.004a1aef
int3