Function at 0x1002583
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push dword [0x10086c8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x10025a7
xor al, al
jmp 0x1002816
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 4]
push eax
push 0x10
push 0x1001250
push dword [0x10086c8]
call esi
test eax, eax
je 0x1002813
cmp dword [ebp - 4], 0x10
jne 0x1002813
add dword [0x10086cc], 0x10
push ebx
lea eax, [ebp - 4]
push eax
push 4
pop edi
push edi
lea eax, [ebp + 8]
push eax
push dword [0x10086c8]
call esi
test eax, eax
je 0x1002813
cmp dword [ebp - 4], edi
jne 0x1002813
add dword [0x10086cc], edi
push ebx
lea eax, [ebp - 4]
push eax
push edi
push 0x10086c0
push dword [0x10086c8]
call esi
test eax, eax
je 0x1002813
cmp dword [ebp - 4], edi
jne 0x1002813
add dword [0x10086cc], edi
push ebx
lea eax, [ebp - 4]
push eax
push 8
pop edi
push edi
push 0x1008690
push dword [0x10086c8]
call esi
test eax, eax
je 0x1002813
cmp dword [ebp - 4], edi
jne 0x1002813
add dword [0x10086cc], edi
push ebx
lea eax, [ebp - 4]
push eax
push edi
push 0x1008698
push dword [0x10086c8]
call esi
test eax, eax
je 0x1002813
cmp dword [ebp - 4], edi
jne 0x1002813
add dword [0x10086cc], edi
push ebx
lea eax, [ebp - 4]
push eax
push edi
push 0x10086a0
push dword [0x10086c8]
call esi
test eax, eax
je 0x1002813
cmp dword [ebp - 4], edi
jne 0x1002813
add dword [0x10086cc], edi
push ebx
lea eax, [ebp - 4]
push eax
push edi
push 0x10086a8
push dword [0x10086c8]
call esi
test eax, eax
je 0x1002813
cmp dword [ebp - 4], edi
jne 0x1002813
add dword [0x10086cc], edi
push ebx
lea eax, [ebp - 4]
push eax
push edi
push 0x10086b0
push dword [0x10086c8]
call esi
test eax, eax
je 0x1002813
cmp dword [ebp - 4], edi
jne 0x1002813
add dword [0x10086cc], edi
push ebx
lea eax, [ebp - 4]
push eax
push edi
push 0x10086b8
push dword [0x10086c8]
call esi
test eax, eax
je 0x1002813
cmp dword [ebp - 4], edi
jne 0x1002813
add dword [0x10086cc], edi
push ebx
lea eax, [ebp - 4]
push eax
push edi
push 0x1008250
push dword [0x10086c8]
call esi
test eax, eax
je 0x1002813
cmp dword [ebp - 4], edi
jne 0x1002813
add dword [0x10086cc], edi
push ebx
lea eax, [ebp - 4]
push eax
push edi
push 0x1008260
push dword [0x10086c8]
call esi
test eax, eax
je 0x1002813
cmp dword [ebp - 4], edi
jne 0x1002813
add dword [0x10086cc], edi
push ebx
lea eax, [ebp - 4]
push eax
push 4
pop edi
push edi
push 0x1008678
push dword [0x10086c8]
call esi
test eax, eax
je 0x1002813
cmp dword [ebp - 4], edi
jne 0x1002813
add dword [0x10086cc], edi
push ebx
lea eax, [ebp - 4]
push eax
push edi
push 0x100867c
push dword [0x10086c8]
call esi
test eax, eax
je 0x1002813
cmp dword [ebp - 4], edi
jne 0x1002813
add dword [0x10086cc], edi
push ebx
lea eax, [ebp - 4]
push eax
push edi
push 0x1008680
push dword [0x10086c8]
call esi
test eax, eax
je 0x1002813
cmp dword [ebp - 4], edi
jne 0x1002813
add dword [0x10086cc], edi
push ebx
lea eax, [ebp - 4]
push eax
push edi
push 0x1008684
push dword [0x10086c8]
call esi
test eax, eax
je 0x1002813
cmp dword [ebp - 4], edi
jne 0x1002813
add dword [0x10086cc], edi
mov al, 1
jmp 0x1002815
xor al, al
pop esi
pop edi
pop ebx
leave
ret 4