Function at 0x1001d00
Capabilities:
Get file size
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
or dword [ebp - 8], 0xffffffff
push ebx
push esi
xor esi, esi
cmp dword [ebp + 8], 3
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
je 0x1001d36
push esi
push esi
push 0x44c
jmp 0x1001f42
lea eax, [ebp - 0x18]
mov ebx, 0x104
push eax
lea eax, [ebp - 0x134]
push eax
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea ecx, [eax + 1]
cmp ecx, ebx
ja 0x1001f39
cmp eax, esi
je 0x1001f39
lea eax, [ebp - 0x134]
push eax
call fcn.01001fb6
test eax, eax
jne 0x1001d79
push esi
push dword [edi + 4]
jmp 0x1001db5
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x238]
push eax
push ebx
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea ecx, [eax + 1]
cmp ecx, ebx
ja 0x1001f33
cmp eax, esi
je 0x1001f33
lea eax, [ebp - 0x238]
push eax
call fcn.01001fb6
test eax, eax
jne 0x1001dbf
push esi
push dword [edi + 8]
push 0x44e
jmp 0x1001f42
lea eax, [ebp - 0x134]
push pe_nt_image_headers32
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 3
lea eax, [ebp - 0x134]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
cmp eax, esi
mov dword [ebp + 0xc], eax
jne 0x1001df6
push esi
push dword [edi + 4]
push 0x44f
jmp 0x1001f42
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push esi
lea eax, [ebp - 0x30]
push 0x1001200
mov dword [ebp + 8], esi
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x30]
push 0xa
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1001e32
inc dword [ebp + 8]
lea eax, [ebp - 0x30]
push dword [ebp + 8]
push 0x1001200
push eax
jmp 0x1001e09
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
push esi
push 3
push esi
push esi
lea eax, [ebp - 0x238]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
push esi
jne 0x1001e69
push dword [edi + 8]
push 0x451
jmp 0x1001f42
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0x14]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov eax, dword [ebp + 8]
add ebx, 9
add eax, ebx
push eax
push 0x40
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x1001ea5
push esi
push esi
push 0x452
jmp 0x1001f42
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
or dword [eax + 4], 0xffffffff
push dword [ebp - 0x14]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x1c]
push esi
push eax
mov eax, dword [ebp - 0xc]
push dword [ebp + 8]
add ebx, eax
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001ee1
push esi
push dword [edi + 8]
push 0x453
jmp 0x1001f42
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0x134]
push esi
push eax
call fcn.010020e5
cmp eax, esi
mov dword [ebp - 0x10], eax
jne 0x1001f0d
push esi
push dword [edi + 4]
push 0x450
jmp 0x1001f42
push dword [ebp + 0xc]
lea ecx, [ebp - 0x30]
push dword [ebp - 0xc]
push 0x409
push ecx
push 0xa
push eax
call fcn.010022cd
test eax, eax
jne 0x1001f4e
push esi
push dword [edi + 4]
push 0x454
jmp 0x1001f42
push esi
push dword [edi + 8]
jmp 0x1001f3d
push esi
push dword [edi + 4]
push 0x44d
call fcn.01001fe8
mov dword [ebp - 4], 1
cmp dword [ebp - 0x10], esi
je 0x1001f7c
push 1
xor eax, eax
pop ebx
cmp dword [ebp - 4], ebx
sete al
push eax
push dword [ebp - 0x10]
call fcn.0100242f
test eax, eax
jne 0x1001f7c
push esi
push dword [edi + 4]
push 0x455
call fcn.01001fe8
mov dword [ebp - 4], ebx
cmp dword [ebp - 0xc], esi
je 0x1001f8a
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], 0xffffffff
je 0x1001f99
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
jne 0x1001fae
push dword [edi + 4]
push dword [edi + 8]
push 0x3e8
call fcn.01001fe8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret