Function at 0x1003df20
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100f0900
push 0x10097990
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x100f51d4]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x28], ecx
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
test edx, edx
je 0x1003df70
mov dword [edx], ebx
mov eax, dword [ebp + 8]
test eax, eax
mov edi, 0x10027030
jne 0x1003e01a
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 8], eax
test edi, edi
je 0x1003e139
test eax, eax
je 0x1003e139
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x38], eax
cmp dword [ebp + 0xc], ebx
jne 0x1003e024
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp - 0x28]
call edi
mov edi, eax
mov dword [ebp - 0x34], edi
call fcn.10016140
neg eax
sbb eax, eax
and eax, 0x18000000
cmp edi, 0xffffffff
je 0x1003e036
push 0
push 0
push 0
or eax, 0x1000002
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 0x30], edi
test edi, edi
je 0x1003e036
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x1003e036
mov ebx, edi
mov dword [ebp - 0x24], ebx
jmp 0x1003e036
mov eax, 0x10026ff0
jmp 0x1003df8b
push 2
push 0
push dword [ebp - 0x28]
call dword [0x100be420]
mov ebx, eax
mov dword [ebp - 0x24], eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
test ebx, ebx
je 0x1003e0e8
mov dword [ebp - 4], esi
xor edi, edi
mov dword [ebp - 0x20], edi
push 0x10
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x1003e0ab
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1003e0ab
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1003e0ab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x1003e0ab
movzx esi, word [eax]
cmp esi, dword [ebp - 0x1c]
ja 0x1003e0a3
mov dword [ebp - 0x1c], esi
add esi, 3
and esi, 0xfffffffc
mov dword [ebp - 0x1c], esi
cmp dword [eax + 0x28], 0xfeef04bd
je 0x1003e0b0
mov edi, 0xd
mov dword [ebp - 0x20], edi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x1003e0d9
cmp dword [ebp + 0xc], 0
je 0x1003e0ed
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1003e0ed
mov edi, 0xd
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1003e0fb
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1003e109
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x34]
cmp eax, 0xffffffff
je 0x1003e115
push eax
call dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x1003e139
lea eax, [esi*2 + 4]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret