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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a4b60
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
xor ebp, ebp
cmp dword [edi + 8], ebp
jne 0x446910
mov eax, dword [edi + 0x20]
cmp dword [eax - 0xc], ebp
je 0x44656f
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
mov dword [esi], eax
call fcn.0046ffa0
add esp, 4
mov dword [edi + 8], eax
cmp eax, ebp
je 0x44656f
lea ecx, [esp + 0x24]
push ecx
push 0x18
push eax
mov dword [edi + 4], ebp
mov byte [edi + 0x18], 0xff
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esp + 0x28]
movzx ecx, word [edi + 0x14]
cdq
idiv ecx
cmp word [esp + 0x36], 0x20
mov edx, dword [esp + 0x2c]
mov dword [edi + 0x10], edx
mov dword [edi + 0xc], eax
sete al
mov byte [edi + 0x16], al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 4]
cmp ecx, 0xffff
jb 0x4465bc
lea edx, [esp + 0x14]
push edx
call fcn.004066b0
lea eax, [esp + 0x14]
mov dword [esp + 0x48], ebp
call fcn.004462f0
mov byte [edi + 0x17], al
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4465bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 4]
mov ebx, 2
cmp byte [edi + 0x17], bl
jne 0x446609
cmp eax, 0xffff
jae 0x4465f1
mov edx, dword [0x628534]
push 0x2000
push ebp
push ebp
movzx ecx, ax
push ebp
push ecx
push edx
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [edi + 8], eax
jmp 0x4468ab
push 0x2010
push ebp
push ebp
push ebp
push eax
push ebp
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [edi + 8], eax
jmp 0x4468ab
cmp eax, 0xffff
jae 0x44677c
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
push ecx
mov dword [esp + 0x4c], 1
movzx eax, ax
mov ecx, esp
mov dword [esp + 0x1c], esp
push ecx
mov dword [ecx], eax
mov eax, esp
lea esi, [esp + 0x24]
mov dword [esp + 0x20], esp
mov dword [eax], 0x5dc2b4
call fcn.00407b80
test al, al
je 0x44668e
lea esi, [esp + 0x14]
mov byte [edi + 0x17], 5
call fcn.00432b20
lea ecx, [esp + 0x24]
mov eax, esi
mov byte [esp + 0x48], bl
call fcn.00432b10
mov ecx, dword [esp + 0x20]
mov edx, dword [0x628534]
mov esi, dword [eax]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, dword [esp + 0x1c]
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x14]
jmp 0x4466fa
mov eax, dword [edi + 4]
push ecx
movzx eax, ax
mov ecx, esp
mov dword [esp + 0x1c], esp
push ecx
mov dword [ecx], eax
mov eax, esp
lea esi, [esp + 0x24]
mov dword [esp + 0x20], esp
mov dword [eax], 0x5dc2c0
call fcn.00407b80
test al, al
je 0x446719
lea esi, [esp + 0x14]
mov byte [edi + 0x17], 4
call fcn.00455970
lea ecx, [esp + 0x24]
mov eax, esi
mov byte [esp + 0x48], 3
call fcn.00432b10
mov ecx, dword [esp + 0x20]
mov edx, dword [0x628534]
mov esi, dword [eax]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, dword [esp + 0x1c]
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x10]
push ebx
push eax
push esi
call edx
mov dword [edi + 8], eax
mov byte [esp + 0x48], 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x446768
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x446768
mov eax, dword [edi + 4]
push ecx
movzx eax, ax
mov ecx, esp
mov dword [esp + 0x1c], esp
push ecx
mov dword [ecx], eax
mov eax, esp
lea esi, [esp + 0x24]
mov dword [esp + 0x20], esp
mov dword [eax], 0x5dc2c8
call fcn.00407b80
test al, al
je 0x446764
lea esi, [esp + 0x14]
mov byte [edi + 0x17], 3
call fcn.004559b0
lea ecx, [esp + 0x24]
mov eax, esi
mov byte [esp + 0x48], 4
call fcn.00432b10
jmp 0x4466d4
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x4468a9
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4468a9
push 0x5dee8c
push eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], ebp
call fcn.004f92b0
add esp, 0xc
test eax, eax
jne 0x4468ab
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4468ab
push ebx
push ebp
push eax
call fcn.004f9855
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
call fcn.004f975d
mov edx, dword [esp + 0x18]
add esp, 4
push 0
push 0
push edx
mov ebp, eax
call fcn.004f9855
add esp, 0xc
push ebp
call fcn.004f499a
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x44689c
mov eax, dword [esp + 0x14]
push eax
push ebp
push 1
push ebx
call fcn.004f95a3
push ebp
mov eax, ebx
call fcn.00446290
add esp, 0x14
mov byte [edi + 0x17], al
cmp al, 5
jne 0x44682a
lea esi, [esp + 0x18]
call fcn.00432b20
lea ecx, [esp + 0x24]
mov eax, esi
mov dword [esp + 0x48], 5
call fcn.00432b10
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
jmp 0x446873
cmp al, 4
jne 0x44684c
lea esi, [esp + 0x18]
call fcn.00455970
lea ecx, [esp + 0x24]
mov eax, esi
mov dword [esp + 0x48], 6
call fcn.00432b10
jmp 0x44686c
cmp al, 3
jne 0x446893
lea esi, [esp + 0x18]
call fcn.004559b0
lea ecx, [esp + 0x24]
mov eax, esi
mov dword [esp + 0x48], 7
call fcn.00432b10
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
push ebp
push ebx
push eax
call edx
mov dword [edi + 8], eax
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x446893
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push ebx
call fcn.004f744f
add esp, 4
mov eax, dword [esp + 0x14]
push eax
call fcn.004f9951
add esp, 4
xor ebp, ebp
mov eax, dword [edi + 8]
cmp eax, ebp
jne 0x4468cc
mov dword [edi + 0xc], ebp
mov dword [edi + 0x10], ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x24]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
movzx ecx, word [edi + 0x14]
mov esi, dword [esp + 0x28]
cmp cx, bp
jbe 0x4468f2
mov eax, esi
movzx ebx, cx
cdq
idiv ebx
mov dword [edi + 0xc], eax
mov edx, dword [esp + 0x2c]
movzx eax, cx
imul eax, dword [edi + 0xc]
mov dword [edi + 0x10], edx
cmp eax, esi
jne 0x446910
cmp word [esp + 0x36], 0x20
sete cl
mov byte [edi + 0x16], cl
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret