Function at 0x451680
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6f90b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x7e6410]
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 ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ebx
xor esi, esi
mov dword [ebp - 4], 0
cmp dword [edi + 0x46c], esi
je 0x451751
push dword [edi + 0x464]
mov ebx, dword [0x801a54]
push dword [ebp + 8]
mov dword [ebp - 0x30], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x45187b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x45173a
push edi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea ecx, [edi + 1]
push ecx
call fcn.006b6815
push edi
mov esi, eax
push ebx
push esi
call fcn.006b3670
add esp, 0x10
mov byte [edi + esi], 0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0x2c]
lea eax, [edi + 1]
mov dword [ecx], eax
jmp 0x45187b
mov edi, dword [ebp - 0x30]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0x2c]
lea eax, [edi + 1]
mov dword [ecx], eax
jmp 0x45187b
mov eax, dword [edi + 0x37c]
test eax, eax
je 0x4517d1
mov eax, dword [eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x45176b
mov eax, dword [ecx]
push dword [ebp + 8]
call dword [eax + 0x14]
mov eax, dword [edi + 0x37c]
mov eax, dword [eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x451852
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ebx, eax
test ebx, ebx
jle 0x451852
push ebx
call fcn.006b6815
mov esi, eax
add esp, 4
test esi, esi
je 0x4517c7
mov eax, dword [edi + 0x37c]
mov eax, dword [eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x4517b7
mov eax, dword [ecx]
push ebx
push esi
push dword [ebp + 8]
call dword [eax + 0x1c]
test eax, eax
jne 0x4517c7
push esi
call fcn.006b31f8
add esp, 4
xor esi, esi
jmp 0x45187b
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], ebx
jmp 0x45187b
mov edx, dword [edi + 0x464]
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
call fcn.0047e110
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x4517f1
mov eax, dword [eax]
push 0x786b50
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.006b57b8
add esp, 0xc
cmp dword [ebp - 0x14], 8
jb 0x451814
push dword [ebp - 0x28]
call fcn.006b31f8
add esp, 4
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x45181f
xor esi, esi
jmp 0x45187b
push 2
push 0
push eax
call fcn.006b724c
push dword [ebp - 0x2c]
call fcn.006b765f
mov edi, eax
push 1
lea ecx, [edi + 2]
push ecx
call fcn.006b917c
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x451856
push dword [ebp - 0x2c]
call fcn.006b5369
add esp, 4
xor esi, esi
jmp 0x45187b
push 0
push 0
push dword [ebp - 0x2c]
call fcn.006b724c
push dword [ebp - 0x2c]
push edi
push 1
push esi
call fcn.006b6232
push dword [ebp - 0x2c]
call fcn.006b5369
add esp, 0x20
mov dword [ebx], edi
mov eax, dword [ebp + 8]
lea ecx, [eax - 0xc]
cmp ecx, 0x7e8698
je 0x4518a6
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4518a6
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff4
push ecx
call fcn.006b31f8
add esp, 4
mov eax, esi
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.006b3266
mov esp, ebp
pop ebp
ret 8