Function at 0x419a40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x515584]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x18], edx
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 - 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x14], ecx
mov eax, dword [eax + 4]
cmp eax, 1
jne 0x419a8d
xor ecx, ecx
mov dword [ebp - 0x1c], ebx
cmp dword [edi + 4], ecx
sete cl
mov dword [ebp - 0x14], ecx
test ecx, ecx
jne 0x419bde
cmp eax, 1
cmovne ebx, dword [edi + 0x805c]
cmp dword [esi + 0x26f0], ecx
je 0x419b47
mov ecx, esi
call fcn.0041ae90
mov edx, dword [edi + 0x8040]
push 0
mov dword [ebp - 8], edx
mov ecx, dword [edx + 8]
add ecx, dword [edx + 0x18]
mov eax, dword [edx + 0xc]
adc eax, dword [edx + 0x1c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push ecx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x419aed
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x419bbf
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 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 0x419bbf
mov ecx, dword [ebp - 0xc]
cmp ecx, ebx
jne 0x419bbf
mov eax, dword [ebp - 8]
add dword [eax + 0x18], ecx
mov ecx, esi
adc dword [eax + 0x1c], 0
mov eax, dword [ebp - 0xc]
add dword [esi + 0x5d110], eax
push eax
adc dword [esi + 0x5d114], 0
push edi
call fcn.0041b090
mov ecx, esi
call fcn.0041afa0
jmp 0x419b83
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 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 0x419bbf
mov eax, dword [ebp - 8]
cmp eax, ebx
jne 0x419bbf
add dword [esi + 0x5d110], eax
mov ecx, esi
push eax
adc dword [esi + 0x5d114], 0
push edi
call fcn.0041b090
mov ebx, dword [ebp - 0x1c]
add dword [esi + 0x26c0], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [esi + 0x26a4]
cmp ecx, 0x3e8
jbe 0x419bb7
mov dword [esi + 0x26a4], eax
mov ecx, esi
mov eax, dword [esi]
push 0
push 6
call dword [eax + 4]
test eax, eax
je 0x419c32
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
jmp 0x419be1
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00419f00
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d7c2
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 0x1c]
cmp dword [esi + 0x26f0], 0
je 0x419c9d
test ebx, ebx
je 0x419c53
test ecx, ecx
jne 0x419c53
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 0x419c47
cmp edx, dword [ecx + 0x1c]
jne 0x419c47
mov dword [edi + 0x28], 0xa
mov ecx, esi
mov eax, dword [esi]
push 0
push 6
call dword [eax + 4]
test eax, eax
jne 0x419cd5
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d7c2
mov esp, ebp
pop ebp
ret 4
mov dword [edi + 0x28], 8
jmp 0x419cd5
mov eax, dword [edi + 0x8040]
test eax, eax
je 0x419c8a
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.0041a400
jmp 0x419cd5
test ebx, ebx
je 0x419ccd
mov ecx, dword [esi + 0x5d100]
mov eax, dword [esi + 0x5d104]
cmp ecx, 0xffffffff
jne 0x419cb6
cmp eax, ecx
je 0x419cc6
cmp ecx, dword [esi + 0x5d110]
jne 0x419cc6
cmp eax, dword [esi + 0x5d114]
je 0x419ccd
mov eax, 8
jmp 0x419cd2
mov eax, 0xa
mov dword [edi + 0x28], eax
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048d7c2
mov esp, ebp
pop ebp
ret 4