Function at 0x48e530
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 0x48e570
xor ecx, ecx
mov dword [ebp - 0xc], ebx
cmp dword [edi + 4], ecx
sete cl
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x48e6b7
cmp eax, 1
cmovne ebx, dword [edi + 0x805c]
cmp dword [esi + 0x26f0], ecx
je 0x48e62a
mov ecx, esi
call fcn.0048f960
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 0x48e5d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x48e6a2
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 0x48e6a2
mov ecx, dword [ebp - 4]
cmp ecx, ebx
jne 0x48e6a2
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.0048fb50
mov ecx, esi
call fcn.0048fa70
jmp 0x48e666
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 0x48e6a2
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jne 0x48e6a2
add dword [esi + 0x5d110], eax
mov ecx, esi
push eax
adc dword [esi + 0x5d114], 0
push edi
call fcn.0048fb50
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 0x48e69a
mov dword [esi + 0x26a4], eax
mov ecx, esi
mov eax, dword [esi]
push 0
push 6
call dword [eax + 4]
test eax, eax
je 0x48e70b
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
jmp 0x48e6ba
push dword [ebp + 8]
mov ecx, esi
call fcn.0048e9f0
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 0x48e781
test ebx, ebx
je 0x48e72b
test ecx, ecx
jne 0x48e72b
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 0x48e716
cmp edx, dword [ecx + 0x1c]
jne 0x48e716
mov dword [edi + 0x28], 0xa
mov ecx, esi
mov eax, dword [esi]
push 0
push 6
call dword [eax + 4]
test eax, eax
jne 0x48e7c8
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 0x48e762
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.0048eef0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test ebx, ebx
je 0x48e7c0
mov ecx, dword [esi + 0x5d100]
mov eax, dword [esi + 0x5d104]
cmp ecx, 0xffffffff
jne 0x48e79a
cmp eax, ecx
je 0x48e7aa
cmp ecx, dword [esi + 0x5d110]
jne 0x48e7aa
cmp eax, dword [esi + 0x5d114]
je 0x48e7c0
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