Function at 0x5919cab1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x591d4f78]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
and dword [ebp - 0x40c], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x428], edx
lea edx, [ebp - 0x40c]
push edx
push dword [ebp + 0x18]
mov dword [ebp - 0x42c], ecx
push edi
push eax
mov byte [ebp - 0x405], 0
call fcn.591316f8
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x5919cd66
cmp ebx, eax
je 0x5919cd66
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x41c], eax
je 0x5919cd66
and dword [ebp - 0x410], 0
cmp di, 0x17
je 0x5919cb6d
push 0
lea ecx, [ebp - 0x410]
push ecx
push dword [ebp - 0x40c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setg byte [ebp - 0x405]
jmp 0x5919cd5a
mov eax, dword [ebp - 0x40c]
and dword [ebp - 0x40c], 0
lea edi, [esi + eax - 1]
mov dword [ebp - 0x414], esi
mov ebx, esi
mov dword [ebp - 0x420], edi
mov byte [ebp - 0x405], 1
cmp ebx, edi
jae 0x5919cd0c
cmp byte [ebx], 0x7b
jne 0x5919cba6
cmp byte [ebx + 1], 0x25
je 0x5919cbab
inc ebx
cmp ebx, edi
jb 0x5919cb9b
cmp ebx, edi
je 0x5919ccff
push 0
lea eax, [ebp - 0x410]
push eax
mov eax, ebx
sub eax, esi
push eax
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, dword [ebp - 0x410]
jle 0x5919cbeb
mov ecx, ebx
sub ecx, dword [ebp - 0x414]
mov byte [ebp - 0x405], 1
cmp eax, ecx
je 0x5919cbf2
mov byte [ebp - 0x405], 0
add dword [ebp - 0x40c], eax
inc ebx
inc ebx
mov dword [ebp - 0x414], ebx
jmp 0x5919cc0e
cmp byte [ebx], 0x25
jne 0x5919cc0d
cmp byte [ebx + 1], 0x7d
je 0x5919cc12
inc ebx
cmp ebx, edi
jb 0x5919cc02
push 0xa
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x414]
call dword [sym.imp.MSVCR80.dll_strtol]
mov ecx, dword [ebp - 0x42c]
add esp, 0xc
push dword [ebp + 0x18]
push eax
call fcn.59120b3e
test eax, eax
je 0x5919ccf5
lea esi, [eax + 2]
movzx eax, word [eax]
mov dword [ebp - 0x418], eax
jmp 0x5919cce8
cmp dword [ebp - 0x418], 0
je 0x5919ccf5
mov edi, 0x100
cmp dword [ebp - 0x418], edi
jae 0x5919cc72
mov edi, dword [ebp - 0x418]
xor eax, eax
push eax
push eax
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push edi
push esi
push eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
lea ecx, [ebp - 0x410]
push ecx
push eax
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, dword [ebp - 0x410]
jle 0x5919cccc
cmp eax, dword [ebp - 0x424]
mov byte [ebp - 0x405], 1
je 0x5919ccd3
mov byte [ebp - 0x405], 0
add dword [ebp - 0x40c], eax
sub dword [ebp - 0x418], edi
lea esi, [esi + edi*2]
mov edi, dword [ebp - 0x420]
cmp byte [ebp - 0x405], 0
jne 0x5919cc52
inc ebx
inc ebx
mov esi, ebx
mov dword [ebp - 0x414], esi
cmp byte [ebp - 0x405], 0
jne 0x5919cb93
cmp byte [ebp - 0x405], 0
je 0x5919cd5a
push 0
lea eax, [ebp - 0x410]
push eax
mov eax, edi
sub eax, esi
inc eax
push eax
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, dword [ebp - 0x410]
jle 0x5919cd4d
sub edi, dword [ebp - 0x414]
mov byte [ebp - 0x405], 1
inc edi
cmp eax, edi
je 0x5919cd54
mov byte [ebp - 0x405], 0
add dword [ebp - 0x40c], eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x428]
test eax, eax
pop edi
pop esi
pop ebx
je 0x5919cd7b
mov ecx, dword [ebp - 0x40c]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x405]
xor ecx, ebp
call fcn.5911c55f
leave
ret 0x14