Function at 0x1000ba70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x26d8]
mov edi, dword [eax + edx*4]
mov eax, dword [edi + 0x805c]
mov ebx, dword [edi]
mov ecx, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x20]
mov dword [ebp - 8], ecx
mov eax, dword [eax + 4]
cmp eax, 1
jne 0x1000bab0
xor ecx, ecx
mov dword [ebp - 0xc], ebx
cmp dword [edi + 4], ecx
sete cl
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x1000bbf7
cmp eax, 1
cmovne ebx, dword [edi + 0x805c]
cmp dword [esi + 0x26f0], ecx
je 0x1000bb6a
mov ecx, esi
call fcn.1000cea0
mov edx, dword [edi + 0x8040]
push 0
mov dword [ebp - 0x10], edx
mov ecx, dword [edx + 8]
add ecx, dword [edx + 0x18]
mov eax, dword [edx + 0xc]
adc eax, dword [edx + 0x1c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push ecx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1000bb10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1000bbe2
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push ebx
lea eax, [edi + 0x40]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000bbe2
mov ecx, dword [ebp - 4]
cmp ecx, ebx
jne 0x1000bbe2
mov eax, dword [ebp - 0x10]
add dword [eax + 0x18], ecx
mov ecx, esi
adc dword [eax + 0x1c], 0
mov eax, dword [ebp - 4]
add dword [esi + 0x5d110], eax
push eax
adc dword [esi + 0x5d114], 0
push edi
call fcn.1000d0a0
mov ecx, esi
call fcn.1000cfc0
jmp 0x1000bba6
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push ebx
lea eax, [edi + 0x40]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000bbe2
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jne 0x1000bbe2
add dword [esi + 0x5d110], eax
mov ecx, esi
push eax
adc dword [esi + 0x5d114], 0
push edi
call fcn.1000d0a0
mov ebx, dword [ebp - 0xc]
add dword [esi + 0x26c0], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [esi + 0x26a4]
cmp ecx, 0x3e8
jbe 0x1000bbda
mov dword [esi + 0x26a4], eax
mov ecx, esi
mov eax, dword [esi]
push 0
push 6
call dword [eax + 4]
test eax, eax
je 0x1000bc4b
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
jmp 0x1000bbfa
push dword [ebp + 8]
mov ecx, esi
call fcn.1000bf30
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 0xc]
cmp dword [esi + 0x26f0], 0
je 0x1000bcc1
test ebx, ebx
je 0x1000bc6b
test ecx, ecx
jne 0x1000bc6b
mov ecx, dword [edi + 0x8040]
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 8]
mov edx, dword [ecx + 0x14]
sbb edx, dword [ecx + 0xc]
add eax, 1
adc edx, 0
cmp eax, dword [ecx + 0x18]
jne 0x1000bc56
cmp edx, dword [ecx + 0x1c]
jne 0x1000bc56
mov dword [edi + 0x28], 0xa
mov ecx, esi
mov eax, dword [esi]
push 0
push 6
call dword [eax + 4]
test eax, eax
jne 0x1000bd08
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [edi + 0x28], 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x8040]
test eax, eax
je 0x1000bca2
mov dword [eax + 4], 0
mov ecx, dword [edi + 0x8040]
mov eax, dword [ecx + 0x18]
add dword [ecx + 8], eax
mov eax, dword [ecx + 0x1c]
adc dword [ecx + 0xc], eax
mov eax, dword [edi + 0x8040]
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
push 1
push edx
mov ecx, esi
mov dword [edi + 0x28], 4
call fcn.1000c430
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test ebx, ebx
je 0x1000bd00
mov ecx, dword [esi + 0x5d100]
mov eax, dword [esi + 0x5d104]
cmp ecx, 0xffffffff
jne 0x1000bcda
cmp eax, ecx
je 0x1000bcea
cmp ecx, dword [esi + 0x5d110]
jne 0x1000bcea
cmp eax, dword [esi + 0x5d114]
je 0x1000bd00
mov eax, 8
mov dword [edi + 0x28], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0xa
mov dword [edi + 0x28], eax
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4