Function at 0x4a8990
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
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 0x4a89d0
xor ecx, ecx
mov dword [ebp - 0xc], ebx
cmp dword [edi + 4], ecx
sete cl
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x4a8b17
cmp eax, 1
cmovne ebx, dword [edi + 0x805c]
cmp dword [esi + 0x26f0], ecx
je 0x4a8a8a
mov ecx, esi
call fcn.004a7560
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 0x4a8a30
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4a8b02
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 0x4a8b02
mov ecx, dword [ebp - 4]
cmp ecx, ebx
jne 0x4a8b02
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.004a9440
mov ecx, esi
call fcn.004a9970
jmp 0x4a8ac6
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 0x4a8b02
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jne 0x4a8b02
add dword [esi + 0x5d110], eax
mov ecx, esi
push eax
adc dword [esi + 0x5d114], 0
push edi
call fcn.004a9440
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 0x4a8afa
mov dword [esi + 0x26a4], eax
mov ecx, esi
mov eax, dword [esi]
push 0
push 6
call dword [eax + 4]
test eax, eax
je 0x4a8b6b
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
jmp 0x4a8b1a
push dword [ebp + 8]
mov ecx, esi
call fcn.004a6740
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 0xc]
cmp dword [esi + 0x26f0], 0
je 0x4a8be1
test ebx, ebx
je 0x4a8b8b
test ecx, ecx
jne 0x4a8b8b
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 0x4a8b76
cmp edx, dword [ecx + 0x1c]
jne 0x4a8b76
mov dword [edi + 0x28], 0xa
mov ecx, esi
mov eax, dword [esi]
push 0
push 6
call dword [eax + 4]
test eax, eax
jne 0x4a8c28
pop edi
pop esi
xor eax, eax
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 0x4a8bc2
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.004a97b0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
test ebx, ebx
je 0x4a8c20
mov ecx, dword [esi + 0x5d100]
mov eax, dword [esi + 0x5d104]
cmp ecx, 0xffffffff
jne 0x4a8bfa
cmp eax, ecx
je 0x4a8c0a
cmp ecx, dword [esi + 0x5d110]
jne 0x4a8c0a
cmp eax, dword [esi + 0x5d114]
je 0x4a8c20
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