Function at 0x451cf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0670
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5020a8]
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 + 0x188]
lea esi, [edi + 0x188]
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
movq qword [ebp - 0x224], xmm0
cmp eax, dword [esi + 4]
jne 0x451e10
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x451db0
push 0xa
push 0xa78
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x451db0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x451db0
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 0x451da1
mov dword [eax], 0xa78
add dword [esi + 4], 4
jmp 0x451db0
lea ecx, [ebp - 0x22c]
push ecx
push eax
mov ecx, esi
call fcn.00403bb0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x451e10
push 0xa
push 0xa79
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x451e10
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x451e10
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 0x451e01
mov dword [eax], 0xa79
add dword [esi + 4], 4
jmp 0x451e10
lea ecx, [ebp - 0x22c]
push ecx
push eax
mov ecx, esi
call fcn.00403bb0
push esi
lea ecx, [ebp - 0x224]
call fcn.00403070
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x224]
mov ebx, dword [ebp - 0x220]
cmp esi, ebx
jne 0x451e74
test esi, esi
je 0x451e6a
mov ecx, dword [ebp - 0x21c]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x451e60
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4520e4
push ecx
push esi
call fcn.0049fdd7
add esp, 8
mov eax, 0x80004005
jmp 0x4520c3
mov eax, dword [esi]
mov dword [ebp - 0x228], eax
mov eax, ebx
sub eax, esi
sar eax, 2
cmp eax, 1
jbe 0x451ec4
call fcn.004764e0
mov edx, dword [0x517560]
mov eax, esi
mov ecx, dword [eax]
cmp ecx, 0xa78
jne 0x451ead
test edx, edx
je 0x451ebd
mov ebx, ecx
mov dword [ebp - 0x228], ebx
jmp 0x451eca
cmp ecx, 0xa79
jne 0x451ebd
test edx, edx
je 0x451f6d
add eax, 4
cmp eax, ebx
jne 0x451e95
mov ebx, dword [ebp - 0x228]
mov eax, dword [edi + 0xc8]
xor edx, edx
mov ecx, dword [edi + 0xc4]
sub eax, ecx
sar eax, 6
mov dword [ebp - 0x234], edx
test eax, eax
je 0x452092
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 0x451ffa
cmp dword [eax + 0x1c], 8
lea ebx, [eax + 8]
mov eax, ebx
jb 0x451f1d
mov eax, dword [ebx]
push 0x4ea0e4
push eax
add edi, 0x124
call fcn.004b3277
add esp, 8
test eax, eax
jne 0x451f7d
cmp dword [edi + 0x14], 8
jb 0x451f3d
mov edi, dword [edi]
mov eax, dword [ebp - 0x230]
push dword [eax + 0x1a0]
mov eax, dword [ebp - 0x22c]
push edi
push dword [eax + 4]
call fcn.00459790
mov edi, eax
test edi, edi
js 0x452028
mov edi, dword [ebp - 0x230]
jmp 0x451fee
mov ebx, 0xa79
mov dword [ebp - 0x228], ebx
jmp 0x451eca
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a1c30
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x451f9b
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004b34cb
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x451fb8
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 + 0x1a0]
push eax
mov eax, dword [ebp - 0x22c]
push dword [eax + 4]
call fcn.00459790
mov ebx, eax
test ebx, ebx
js 0x45205f
mov ebx, dword [ebp - 0x228]
mov edx, dword [ebp - 0x234]
mov eax, dword [edi + 0xc8]
inc edx
mov ecx, dword [edi + 0xc4]
sub eax, ecx
add dword [ebp - 0x238], 0x40
sar eax, 6
mov dword [ebp - 0x234], edx
cmp edx, eax
jae 0x452092
mov eax, dword [ebp - 0x238]
jmp 0x451f00
mov ecx, dword [ebp - 0x21c]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x452051
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4520e4
push ecx
push esi
call fcn.0049fdd7
add esp, 8
mov eax, edi
jmp 0x4520c3
mov ecx, dword [ebp - 0x21c]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x452084
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4520df
push ecx
push esi
call fcn.0049fdd7
add esp, 8
mov eax, ebx
jmp 0x4520c3
mov ecx, dword [ebp - 0x21c]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4520b7
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4520e4
push ecx
push esi
call fcn.0049fdd7
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.004a024d
mov esp, ebp
pop ebp
ret
call fcn.004a495f
call fcn.004a495f
int3