Function at 0x1023c16
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov edi, 0x80070057
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
jne 0x1023c62
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1023fcc
test byte [eax + 0x1c], 1
je 0x1023fcc
push 0x1003ff0
push 0x3f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
jmp 0x1023fcc
push dword [ebp + 8]
call fcn.0101f0be
mov edi, eax
cmp edi, ebx
jge 0x1023ca2
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1023fcc
test byte [eax + 0x1c], 1
je 0x1023fcc
push edi
push 0x1003ff0
push 0x40
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
jmp 0x1023fcc
push 2
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
mov dword [ebp + 8], ebx
test ebx, ebx
jne 0x1023cf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1023ccb
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1023fbd
test byte [eax + 0x1c], 1
je 0x1023fbd
push edi
push 0x1003ff0
push 0x41
jmp 0x1023d40
push 0x1004338
push 0x100431c
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1023d50
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1023d1c
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1023fbd
test byte [eax + 0x1c], 1
je 0x1023fbd
push edi
push 0x1003ff0
push 0x42
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
jmp 0x1023fbd
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
add eax, 0xffffff68
cmp eax, 0x7ff68
ja 0x1023f85
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x1023db7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1023d8e
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1023fae
test byte [eax + 0x1c], 1
je 0x1023fae
push edi
push 0x1003ff0
push 0x44
jmp 0x1023f62
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x1023e01
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1023dd8
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1023fae
test byte [eax + 0x1c], 1
je 0x1023fae
push edi
push 0x1003ff0
push 0x45
jmp 0x1023f62
cmp dword [ebx], 0x414d5153
je 0x1023e34
mov edi, 0x90070a0b
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1023fae
test byte [eax + 0x1c], 1
je 0x1023fae
push 0x1003ff0
push 0x46
jmp 0x1023fa3
lea ecx, [esi + 8]
lea eax, [ebx + 0x18]
push ecx
push eax
mov dword [ebp + 0xc], eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1023e79
mov edi, 0x90070a0b
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1023fae
test byte [eax + 0x1c], 1
je 0x1023fae
push dword [ebp + 0xc]
push 0x1003ff0
push 0x47
jmp 0x1023f2a
mov eax, dword [ebx + 4]
cmp eax, dword [esi + 4]
je 0x1023eac
mov edi, 0x90070a0b
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1023fae
test byte [eax + 0x1c], 1
je 0x1023fae
push 0x1003ff0
push 0x48
jmp 0x1023fa3
lea eax, [ebx + 0x10]
push eax
call fcn.0101e364
test eax, eax
je 0x1023ee4
mov edi, 0x90070a0a
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1023fae
test byte [eax + 0x1c], 1
je 0x1023fae
push 0x1003ff0
push 0x49
jmp 0x1023fa3
push dword [ebp + 0x14]
mov ecx, esi
push 0x1003e38
push dword [ebp + 0x10]
call fcn.0101ee20
mov edi, eax
test edi, edi
jge 0x1023f37
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1023fae
test byte [eax + 0x1c], 1
je 0x1023fae
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x1023f22
mov ecx, 0x1002070
push ecx
push 0x1003ff0
push 0x4a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004ee0
jmp 0x1023fae
push dword [ebp - 8]
mov ecx, esi
push ebx
call fcn.010220dd
mov edi, eax
test edi, edi
jge 0x1023f6f
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1023fae
test byte [eax + 0x1c], 1
je 0x1023fae
push edi
push 0x1003ff0
push 0x4b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
jmp 0x1023fae
mov eax, dword [esi + 0x90]
sub eax, dword [esi + 0x88]
xor edi, edi
mov dword [esi + 0x8c], eax
jmp 0x1023fae
mov edi, 0x90070a0b
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1023fbd
test byte [eax + 0x1c], 1
je 0x1023fbd
push 0x1003ff0
push 0x43
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
cmp dword [ebp - 4], 0
je 0x1023fbd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp + 8], 0
je 0x1023fcc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10