Function at 0x451f00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0390
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 0x452020
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x451fc0
push 0xa
push 0xa78
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x451fc0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x451fc0
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 0x451fb1
mov dword [eax], 0xa78
add dword [esi + 4], 4
jmp 0x451fc0
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 0x452020
push 0xa
push 0xa79
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x452020
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x452020
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 0x452011
mov dword [eax], 0xa79
add dword [esi + 4], 4
jmp 0x452020
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 0x452084
test esi, esi
je 0x45207a
mov ecx, dword [ebp - 0x21c]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x452070
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4522f4
push ecx
push esi
call fcn.0049f9b7
add esp, 8
mov eax, 0x80004005
jmp 0x4522d3
mov eax, dword [esi]
mov dword [ebp - 0x228], eax
mov eax, ebx
sub eax, esi
sar eax, 2
cmp eax, 1
jbe 0x4520d4
call fcn.00479e40
mov edx, dword [0x517570]
mov eax, esi
mov ecx, dword [eax]
cmp ecx, 0xa78
jne 0x4520bd
test edx, edx
je 0x4520cd
mov ebx, ecx
mov dword [ebp - 0x228], ebx
jmp 0x4520da
cmp ecx, 0xa79
jne 0x4520cd
test edx, edx
je 0x45217d
add eax, 4
cmp eax, ebx
jne 0x4520a5
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 0x4522a2
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 0x45220a
cmp dword [eax + 0x1c], 8
lea ebx, [eax + 8]
mov eax, ebx
jb 0x45212d
mov eax, dword [ebx]
push 0x4ea124
push eax
add edi, 0x124
call fcn.004b2f77
add esp, 8
test eax, eax
jne 0x45218d
cmp dword [edi + 0x14], 8
jb 0x45214d
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.004599a0
mov edi, eax
test edi, edi
js 0x452238
mov edi, dword [ebp - 0x230]
jmp 0x4521fe
mov ebx, 0xa79
mov dword [ebp - 0x228], ebx
jmp 0x4520da
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a1810
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x4521ab
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004b31cb
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x4521c8
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.004599a0
mov ebx, eax
test ebx, ebx
js 0x45226f
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 0x4522a2
mov eax, dword [ebp - 0x238]
jmp 0x452110
mov ecx, dword [ebp - 0x21c]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x452261
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4522f4
push ecx
push esi
call fcn.0049f9b7
add esp, 8
mov eax, edi
jmp 0x4522d3
mov ecx, dword [ebp - 0x21c]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x452294
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4522ef
push ecx
push esi
call fcn.0049f9b7
add esp, 8
mov eax, ebx
jmp 0x4522d3
mov ecx, dword [ebp - 0x21c]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4522c7
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4522f4
push ecx
push esi
call fcn.0049f9b7
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.0049fe2d
mov esp, ebp
pop ebp
ret
call fcn.004a453f
call fcn.004a453f
int3