Function at 0x10008f5d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x55c
mov eax, dword [0x100200b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 4], 0xffffffff
mov esi, edx
mov dword [ebp - 0x54c], edi
mov dword [ebp - 0x554], esi
mov dword [ebp - 0x558], eax
je 0x10008f99
mov ebx, dword [edi]
call fcn.100086f4
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
or dword [edi + 4], 0xffffffff
cmp ebx, dword [eax + 4]
jl 0x10008fb1
mov eax, 0x10000
jmp 0x10009293
cmp ebx, dword [eax + 0x10]
jge 0x10008fc3
mov esi, eax
call fcn.10008127
mov esi, dword [ebp - 0x554]
mov eax, dword [edi]
cmp dword [eax + 0x10], ebx
jge 0x10008fde
mov esi, dword [edi]
call fcn.1000815c
mov eax, dword [edi]
cmp dword [eax + 0x10], ebx
jl 0x10008fca
mov esi, dword [ebp - 0x554]
push ebx
lea edx, [ebp - 0x548]
mov ecx, edi
call fcn.1000887a
mov eax, dword [ebp - 0x440]
shr eax, 4
test al, 1
mov al, byte [esi]
je 0x10009028
cmp al, 0x2f
je 0x1000900d
cmp al, 0x5c
je 0x1000900d
test al, al
je 0x10009012
cmp byte [esi + 1], 0x3a
jne 0x10009012
push esi
push 0
jmp 0x1000901a
push esi
add edi, 0x140
push edi
call fcn.10008e0f
pop ecx
pop ecx
xor eax, eax
jmp 0x10009293
mov byte [ebp - 0x218], 0
mov ebx, esi
mov ecx, esi
jmp 0x10009043
cmp al, 0x2f
je 0x1000903d
cmp al, 0x5c
jne 0x10009040
lea ebx, [ecx + 1]
inc ecx
mov al, byte [ecx]
test al, al
jne 0x10009035
push 0x104
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.1000bafb
add esp, 0xc
cmp ebx, esi
jne 0x100090fc
mov byte [ebp - 0x110], 0
mov esi, str.text.e
lea edi, [ebp - 0x318]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0xf8
lea eax, [ebp - 0x311]
push 0
push eax
movsb byte es:[edi], byte [esi]
call fcn.1000c980
add esp, 0xc
mov esi, 0x1001c7a0
lea edi, [ebp - 0x418]
movsw word es:[edi], word [esi]
push 0xfc
lea eax, [ebp - 0x415]
push 0
push eax
movsb byte es:[edi], byte [esi]
call fcn.1000c980
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x318]
push 0xff
push eax
call fcn.1000b5bd
add esp, 0xc
lea eax, [ebp - 0x318]
push eax
push ebx
call fcn.1000b200
mov esi, dword [ebp - 0x54c]
pop ecx
add esi, 0x140
test eax, eax
pop ecx
lea eax, [ebp - 0x110]
je 0x10009161
push dword [ebp - 0x558]
jmp 0x10009162
mov eax, ebx
sub eax, esi
mov byte [ebp + eax - 0x110], 0
cmp byte [ebp - 0x110], 0x2f
je 0x10009134
cmp byte [ebp - 0x110], 0x5c
je 0x10009134
cmp byte [ebp - 0x110], 0
je 0x1000906b
cmp byte [ebp - 0x10f], 0x3a
jne 0x1000906b
push ebx
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x218]
push str._s_s
push eax
call fcn.1000a9f0
lea eax, [ebp - 0x110]
push eax
xor esi, esi
push esi
call fcn.10008e0f
add esp, 0x18
jmp 0x1000918f
push ebx
push eax
push esi
lea eax, [ebp - 0x218]
push str._s_s_s
push eax
call fcn.1000a9f0
add esp, 0x14
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.10008e0f
mov edi, dword [ebp - 0x54c]
pop ecx
pop ecx
xor esi, esi
push esi
push dword [ebp - 0x440]
lea eax, [ebp - 0x218]
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x554], eax
cmp eax, 0xffffffff
jne 0x100091c1
mov eax, 0x200
jmp 0x10009293
push dword [edi + 0x138]
mov eax, dword [edi]
call fcn.10008370
pop ecx
cmp dword [edi + 0x13c], esi
jne 0x100091e8
push 0x4000
call fcn.1000b9a8
pop ecx
mov dword [edi + 0x13c], eax
mov dword [ebp - 0x54c], esi
lea eax, [ebp - 0x54d]
push eax
push dword [edi + 0x13c]
mov eax, dword [edi]
mov ecx, 0x4000
call fcn.100084c9
mov ebx, eax
pop ecx
pop ecx
cmp ebx, 0xffffff96
je 0x100092a4
cmp ebx, esi
jl 0x10009246
jle 0x10009239
push esi
lea eax, [ebp - 0x558]
push eax
push ebx
push dword [edi + 0x13c]
push dword [ebp - 0x554]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100092b0
cmp byte [ebp - 0x54d], 0
jne 0x10009250
cmp ebx, esi
jne 0x100091ee
mov dword [ebp - 0x54c], 0x5000000
mov ebx, dword [edi]
call fcn.100086f4
cmp dword [ebp - 0x54c], 0
jne 0x10009281
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x434]
push eax
push dword [ebp - 0x554]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 0x554]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x54c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000a9e1
leave
ret 8
mov dword [ebp - 0x54c], 0x1000
jmp 0x10009250
mov dword [ebp - 0x54c], 0x400
jmp 0x10009250