Function at 0x2a47ce8c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x2a4af584]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
xor ebx, ebx
push edi
cmp eax, ebx
je 0x2a47d07f
cmp word [eax], bx
je 0x2a47d07f
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x418], edi
test edi, edi
je 0x2a47d07f
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x2a47d137
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x2a47d137
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x2a47d137
movzx edi, word [eax]
add edi, edi
lea eax, [edi + 4]
call fcn.2a41925b
mov ebx, esp
mov dword [ebp - 0x428], ebx
test ebx, ebx
jne 0x2a47cf31
mov ebx, 0x80004005
jmp 0x2a47d137
push edi
push dword [ebp - 0x420]
push ebx
call sub.msvcrt.dll_memcpy
and dword [ebp - 0x424], 0
and dword [ebp - 0x41c], 0
shr edi, 1
lea eax, [edi + ebx]
add esp, 0xc
mov byte [eax], 0x46
mov byte [eax + 1], 0x45
mov byte [eax + 2], 0x32
mov byte [eax + 3], 0x58
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0x2a47d290
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x2a47d073
mov ecx, dword [ebp - 0x41c]
movzx eax, word [ecx]
movzx ecx, word [ecx + 2]
mov word [esi + 0x1c], ax
movzx ecx, cx
push ecx
movzx eax, ax
push eax
push 0x2a47d27c
mov edi, 0x104
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.2a47ce2d
add esp, 0x14
test eax, eax
jl 0x2a47d073
lea eax, [ebp - 0x414]
push eax
push 0x2a47d244
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.2a47ce2d
add esp, 0x10
test eax, eax
jl 0x2a47d073
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x2a47d073
mov edi, dword [ebp - 0x41c]
mov ebx, dword [sym.imp.msvcrt.dll_wcstoul]
mov eax, edi
add edi, 0x10
movzx ecx, word [edi]
mov dword [ebp - 0x42c], ecx
xor ecx, ecx
mov word [edi], cx
and dword [ebp - 0x420], ecx
push 0x10
lea ecx, [ebp - 0x420]
push ecx
push eax
call ebx
mov dword [esi + 0x18], eax
mov ax, word [ebp - 0x42c]
mov word [edi], ax
push 0x10
lea eax, [ebp - 0x420]
push eax
push edi
call ebx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x414]
push eax
push 0x2a47d208
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.2a47ce2d
add esp, 0x28
test eax, eax
jge 0x2a47d099
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0x80004005
lea esp, [ebp - 0x438]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.2a401bd9
leave
ret
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x428]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x2a47d073
mov eax, dword [ebp - 0x41c]
mov ecx, 0x2a47d200
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x2a47d0ee
test dx, dx
je 0x2a47d0ea
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x2a47d0ee
add eax, 4
add ecx, 4
test dx, dx
jne 0x2a47d0c8
xor eax, eax
jmp 0x2a47d0f3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x2a47d073
push 0xa
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x41c]
call ebx
add esp, 0xc
mov dword [esi + 0x20], eax
test eax, eax
jl 0x2a47d073
inc eax
mov ecx, eax
and ecx, 0x8000001f
mov dword [esi + 0x20], eax
jns 0x2a47d12d
dec ecx
or ecx, 0xffffffe0
inc ecx
sub eax, ecx
add eax, 0x20
mov dword [esi + 0x24], eax
xor ebx, ebx
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
jne 0x2a47d1f2
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.2a402035
add esp, 0xc
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push 0x2e
push dword [ebp - 0x418]
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x418]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x2a47d1af
sub eax, ecx
sar eax, 1
lea edi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.2a40b4f7
pop ecx
mov dword [esi + 0x10], eax
test eax, eax
je 0x2a47d1eb
push dword [ebp - 0x418]
push edi
push eax
call fcn.2a40a595
mov dword [esi + 8], 1
mov dword [esi + 4], 1
mov eax, ebx
jmp 0x2a47d084