Function at 0x5b19f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x906c]
cmp eax, ebp
mov eax, dword [esi + 0x9064]
je 0x5b1a3a
mov ecx, dword [esi + 0x9060]
mov dword [esi + 0x9064], ebp
add ecx, eax
pop edi
mov dword [esi + 0x9060], ecx
mov ecx, dword [esi + 0x8f50]
mov dword [esi + 0x8f54], ecx
pop esi
pop ebp
mov eax, 0x32
pop ebx
add esp, 0x14
ret
cmp eax, ebp
je 0x5b1e70
mov edx, dword [esi + 0x3c]
mov ebx, eax
cmp edx, ebp
mov dword [esp + 0x1c], ebx
jne 0x5b1a6f
cmp dword [esi + 0x44], ebp
jne 0x5b1a6f
mov ecx, dword [esi + 0x9a6]
mov eax, dword [esi + 0xab6]
lea edi, [ecx + ebx]
cmp edi, eax
jbe 0x5b1a6f
sub eax, ecx
mov dword [esp + 0x1c], eax
mov ebx, eax
cmp ebx, ebp
jg 0x5b1ab1
cmp edx, ebp
jne 0x5b1a89
mov dword [esi], 1
mov dword [esi + 0x20], 1
jmp case.0x5b1dc9.0
mov eax, dword [esi + 0x44]
mov dword [esi], 1
cmp eax, ebp
je 0x5b1aa2
mov dword [esi + 0x20], 1
jmp case.0x5b1dc9.0
mov dword [esi + 0x906c], 2
jmp case.0x5b1dc9.0
mov edx, dword [esi + 0x8f50]
push esi
push ebx
push edx
call fcn.005b24a0
mov eax, dword [esi + 0x99e]
add esp, 0xc
cmp eax, ebp
jne 0x5b1bd7
cmp dword [esi + 0x3c], ebp
jne 0x5b1be0
cmp dword [esi + 0x44], ebp
jne 0x5b1bd7
cmp dword [esi + 0xaf2], 0x4000
jne 0x5b1b6c
mov edi, dword [esi + 0x8f58]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x20], ebx
xor ebx, ebx
mov byte [esp + 0x28], 0xd
mov byte [esp + 0x29], 0xa
test ebx, ebx
jne 0x5b1b63
mov al, byte [edi]
push ebx
cmp al, 0xa
lea eax, [esp + 0x18]
push eax
jne 0x5b1b38
mov edx, dword [esi + 0x9068]
lea ecx, [esp + 0x30]
push 2
push ecx
push edx
call ebp
test eax, eax
je 0x5b1b50
mov eax, dword [esp + 0x14]
test eax, eax
ja 0x5b1b55
jmp 0x5b1b50
mov ecx, dword [esi + 0x9068]
push 1
push edi
push ecx
call ebp
test eax, eax
je 0x5b1b50
mov eax, dword [esp + 0x14]
test eax, eax
ja 0x5b1b55
mov ebx, 1
mov eax, dword [esp + 0x20]
inc edi
dec eax
test eax, eax
mov dword [esp + 0x20], eax
jg 0x5b1b0a
mov ebx, dword [esp + 0x1c]
jmp case.0x5b1dc9.0
mov dword [esp + 0x14], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, 0x14
test edi, edi
jle 0x5b1bb2
mov eax, dword [esi + 0x8f58]
mov ecx, dword [esi + 0x9068]
lea edx, [esp + 0x14]
push 0
push edx
push ebx
push eax
push ecx
call ebp
test eax, eax
mov eax, dword [esp + 0x14]
je 0x5b1ba7
cmp eax, ebx
je case.0x5b1dc9.0
test eax, eax
jne 0x5b1bae
dec edi
jmp 0x5b1b7b
xor edi, edi
jmp 0x5b1b7b
mov eax, dword [esi + 0x992]
test eax, eax
jne case.0x5b1dc9.0
mov dword [esi + 0x906c], 2
pop edi
pop esi
pop ebp
mov eax, 0x32
pop ebx
add esp, 0x14
ret
cmp dword [esi + 0x3c], ebp
je 0x5b1c61
cmp dword [esi + 0x40], ebp
jne 0x5b1c61
mov edx, dword [esi + 0x64]
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x5c]
mov edi, dword [esi + 0x8f58]
add edx, eax
mov eax, dword [esi + 0xab6]
cmp eax, ecx
jae 0x5b1c07
sub eax, dword [esi + 0x60]
mov ebp, eax
jmp 0x5b1c09
mov ebp, ecx
mov ecx, dword [esi + 0x6c]
mov eax, dword [esi + 0x60]
cmp ecx, eax
jb 0x5b1c31
mov ecx, dword [esi + 0x68]
mov eax, dword [esi + 0x5c]
cmp ecx, eax
jae case.0x5b1d4c.0
cmp ecx, ebp
jae 0x5b1c4a
mov al, byte [edi]
mov byte [edx], al
mov ecx, dword [esi + 0x68]
inc edx
inc edi
inc ecx
dec ebx
mov dword [esi + 0x68], ecx
jmp 0x5b1c41
mov eax, dword [esi + 0xb0c]
inc ecx
cmp ecx, eax
mov dword [esi + 0x6c], ecx
jae 0x5b1c4a
dec ebx
inc edi
test ebx, ebx
jg 0x5b1c09
jmp case.0x5b1dc9.0
mov dword [esi + 0x906c], 3
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x14
ret
cmp dword [esi + 0x44], ebp
jne 0x5b1c6f
cmp dword [esi + 0x40], ebp
je case.0x5b1dc9.0
mov eax, dword [esi + 0x40]
mov edx, ebx
cmp eax, ebp
mov dword [esp + 0x18], 3
mov dword [esp + 0x10], edx
je 0x5b1d6e
mov eax, dword [esi + 0xab6]
mov edi, dword [esi + 0x5c]
mov ebp, dword [esi + 0x8f58]
cmp eax, edi
jae 0x5b1ca2
sub eax, dword [esi + 0x60]
mov ecx, eax
jmp 0x5b1ca4
mov ecx, edi
test edx, edx
jbe 0x5b1de3
mov eax, dword [esi + 0x6c]
cmp eax, dword [esi + 0x60]
jae 0x5b1cc8
inc eax
cmp eax, dword [esi + 0xb0c]
mov dword [esi + 0x6c], eax
jae 0x5b1d53
dec edx
inc ebp
jmp 0x5b1ca4
mov eax, dword [esi + 0x68]
mov dword [esp + 0x10], edx
cmp eax, edi
jae case.0x5b1d4c.0
add edx, eax
cmp edx, ecx
jbe 0x5b1ceb
sub ecx, eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0xada]
mov edx, dword [esi + 0x58]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x54]
push ecx
mov ecx, 0x20
call fcn.005d58c0
mov edx, dword [esi + 0x54]
push eax
mov eax, dword [esi + 0x4c]
push edx
mov edx, dword [esi + 0x50]
mov ecx, 0x20
call fcn.005d58c0
push eax
mov eax, dword [esi + 0x4c]
lea ecx, [esp + 0x24]
push eax
push ecx
push ebp
push 1
call dword [esi + 0xad6]
mov edx, dword [esp + 0x10]
mov edi, dword [esi + 0x68]
mov eax, dword [esp + 0x18]
mov ecx, 3
add edi, edx
cmp eax, ecx
mov dword [esi + 0x68], edi
ja case.0x5b1dc9.2
jmp dword [eax*4 + 0x5b1e94]
mov dword [esi + 0x906c], 3
pop edi
pop esi
pop ebp
mov dword [esp + 4], edx
mov eax, 2
pop ebx
add esp, 0x14
ret
mov ecx, dword [esi + 0xada]
mov edx, dword [esi + 0x58]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x54]
push ecx
mov ecx, 0x20
call fcn.005d58c0
mov edx, dword [esi + 0x54]
push eax
mov eax, dword [esi + 0x4c]
push edx
mov edx, dword [esi + 0x50]
mov ecx, 0x20
call fcn.005d58c0
mov edx, dword [esi + 0x8f58]
push eax
mov eax, dword [esi + 0x4c]
lea ecx, [esp + 0x24]
push eax
push ecx
push edx
push 1
call dword [esi + 0xad6]
mov eax, dword [esp + 0x18]
mov ecx, 3
cmp eax, ecx
ja case.0x5b1dc9.2
jmp dword [eax*4 + 0x5b1ea4]
mov dword [esi + 0x906c], ecx
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x14
ret
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x9064]
mov ecx, dword [esi + 0x9060]
mov edx, dword [esi + 0x8f50]
add ecx, eax
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x9060], ecx
xor ecx, ecx
mov dword [esi + 0x8f54], edx
cmp eax, ecx
mov dword [esi + 0x9064], ecx
je 0x5b1e1b
mov eax, dword [esi + 0x68]
jmp 0x5b1e5b
cmp dword [esi + 0x44], ecx
je 0x5b1e53
cmp dword [esi + 0x40], ecx
je 0x5b1e30
mov eax, dword [esi + 0x68]
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], ecx
jmp 0x5b1e5b
mov edx, dword [esi + 0x9a6]
mov ecx, dword [esi + 0x54]
add edx, ebx
mov eax, ebx
mov dword [esi + 0x9a6], edx
cdq
add ecx, eax
mov dword [esi + 0x54], ecx
mov eax, dword [esi + 0x58]
adc eax, edx
mov dword [esi + 0x58], eax
jmp 0x5b1e61
mov eax, dword [esi + 0x9a6]
add eax, ebx
mov dword [esi + 0x9a6], eax
mov ecx, dword [esi + 0x9a6]
push ecx
call fcn.005af040
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
mov dword [esi + 0x906c], ecx
mov dword [esi], 1
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x14
ret