Function at 0x4164c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4454c8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x461008]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x461008]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
push 0xa
push dword [0x463700]
push dword [0x463704]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41652f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x456640
push 0x4566ac
call fcn.00416f00
add esp, 0xc
jmp 0x416810
push esi
push dword [0x463704]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov ebx, edi
shr ebx, 1
cmp edi, 2
jb 0x416810
push esi
push dword [0x463704]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x41657e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4557ec
push 0x4566ac
call fcn.00416f00
add esp, 0xc
jmp 0x416810
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
xor edx, edx
mov ecx, edi
add ecx, 2
mov esi, eax
mov dword [esp + 0x30], esi
setb dl
neg edx
or edx, ecx
push edx
call fcn.00432432
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x416806
push edi
push esi
push eax
call fcn.00433580
mov eax, dword [esp + 0x2c]
xor ecx, ecx
lea eax, [eax + ebx*2]
mov word [eax], cx
mov dword [esp + 0x24], eax
call fcn.00416920
push 0x4565f8
push eax
mov dword [esp + 0x3c], eax
call fcn.0043228c
add esp, 0x14
test eax, eax
setne byte [esp + 0x17]
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call fcn.004056f0
mov edi, eax
mov dword [esp + 0x34], edi
mov ecx, dword [esp + 0x20]
xor ebx, ebx
mov dword [esp + 0x50], 0
mov esi, ecx
mov eax, dword [esp + 0x30]
cmp byte [eax], 0xff
jne 0x416630
cmp byte [eax + 1], 0xfe
mov eax, dword [esp + 0x18]
jne 0x416634
sub eax, 2
lea esi, [ecx + 2]
mov dword [esp + 0x18], eax
jmp 0x416634
mov eax, dword [esp + 0x18]
cmp esi, eax
jae 0x416757
lea esp, [esp]
push 0xa
push esi
call fcn.0043269a
mov edi, eax
add esp, 8
mov dword [esp + 0x30], edi
test edi, edi
jne 0x416665
mov eax, dword [esp + 0x18]
mov edi, eax
sub eax, esi
mov dword [esp + 0x30], edi
sar eax, 1
jmp 0x41667e
mov eax, edi
xor ecx, ecx
sub eax, esi
sar eax, 1
cmp word [edi - 2], 0xd
jne 0x41667b
mov word [edi - 2], cx
dec eax
jmp 0x41667e
mov word [edi], cx
cmp eax, 2
jne 0x4166c7
push dword [esp + 0x28]
push esi
call fcn.0043228c
add esp, 8
test eax, eax
jne 0x41669e
mov ebx, 0x4637c0
jmp 0x416746
cmp byte [esp + 0x17], 0
je 0x4166c0
push 0x4565f8
push esi
call fcn.0043228c
add esp, 8
test eax, eax
jne 0x4166c0
lea ebx, [esp + 0x34]
jmp 0x416746
xor ebx, ebx
jmp 0x416746
test ebx, ebx
je 0x416746
push 0x3d
push esi
call fcn.0043269a
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
je 0x416746
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.0043267d
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x20]
add eax, 2
push eax
call fcn.004319e0
mov esi, eax
add esp, 8
mov dword [esp + 0x1c], esi
mov esi, 0xd
lea edi, [esi - 3]
jmp 0x416710
push 0x456650
push eax
call fcn.0043280c
add esp, 8
test eax, eax
je 0x416730
mov word [eax], si
add eax, 2
mov word [eax], di
add eax, 2
jne 0x416710
lea eax, [esp + 0x3c]
mov ecx, ebx
push eax
call fcn.00416a90
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x30]
mov dword [eax], esi
lea esi, [edi + 2]
cmp esi, dword [esp + 0x18]
jb 0x416640
mov edi, dword [esp + 0x34]
cmp byte [esp + 0x17], 0
je 0x4167dc
mov eax, dword [edi]
mov dword [esp + 0x30], eax
cmp eax, edi
je 0x4167cf
lea esp, [esp]
mov ecx, dword [eax + 0x10]
mov esi, dword [0x4637c0]
mov dword [esp + 0x28], ecx
mov eax, dword [eax + 0x14]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x40], ecx
push eax
call fcn.00416b10
cmp dword [eax], esi
jne 0x4167b2
lea eax, [esp + 0x28]
mov ecx, 0x4637c0
push eax
call fcn.00416a90
mov ecx, dword [esp + 0x2c]
mov dword [eax], ecx
jmp 0x4167be
push dword [esp + 0x2c]
call fcn.004323fa
add esp, 4
lea ecx, [esp + 0x30]
call fcn.00402020
mov eax, dword [esp + 0x30]
cmp eax, edi
jne 0x416770
lea ecx, [esp + 0x34]
call fcn.004026a0
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
push eax
call fcn.004323fa
add esp, 4
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x34]
push edi
push dword [edi]
push eax
call fcn.004022f0
push dword [esp + 0x34]
call fcn.0043198a
add esp, 4
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0043183b
mov esp, ebp
pop ebp
ret