Function at 0x1001ed20
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10077b38
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x100934c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], 0
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x4c], 2
mov ecx, dword [ebp - 0x5c]
add ecx, 0xc8
call fcn.1000de10
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x50]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x54], esp
push 0x1007f7dc
call fcn.1000e600
lea edx, [ebp - 0x30]
push edx
call fcn.10026a90
add esp, 0x10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.1000de10
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001eebc
mov byte [ebp - 0xd], 0
push 0x1007f808
push 0x65
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x1001edd9
jmp 0x1001eebc
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
ja 0x1001edfb
jmp 0x1001eebc
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x1001ee1d
jmp 0x1001eebc
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x1001ee35
jmp 0x1001eebc
push 0
push 0x80
push 2
push 0
push 7
push 0x40000000
lea ecx, [ebp - 0x30]
call fcn.1000de10
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x1001ee61
jmp 0x1001eebc
mov dword [ebp - 0x44], 0
push 0
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x3c], 0
je 0x1001eea0
cmp dword [ebp - 0x44], 0
jbe 0x1001ee96
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x48], 0
je 0x1001eeb0
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov byte [ebp - 0xd], 1
xor ecx, ecx
jne 0x1001edb4
movzx edx, byte [ebp - 0xd]
cmp edx, 1
jne 0x1001eef0
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
call fcn.1001b880
mov ecx, dword [ebp - 0x58]
or ecx, 1
mov dword [ebp - 0x58], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.1000ddd0
mov eax, dword [ebp + 8]
jmp 0x1001ef29
push 0x1007f810
mov ecx, dword [ebp + 8]
call fcn.1000dd50
mov edx, dword [ebp - 0x58]
or edx, 1
mov dword [ebp - 0x58], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.1000ddd0
mov eax, dword [ebp + 8]
jmp 0x1001ef29
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10053489
mov esp, ebp
pop ebp
ret 4