Function at 0x5da8f0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1274
call fcn.006ab750
mov eax, dword [esp + 0x1280]
mov eax, dword [eax]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
push edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
jne 0x5da91e
mov eax, 0x6bc0cc
push 0x104
lea esi, [esp + 0x1c]
mov ebx, eax
call fcn.00552ef0
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], ecx
jmp 0x5da942
xor ebp, ebp
push 0x104
lea esi, [esp + 0x28]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call fcn.00480af0
push ebx
lea edi, [esp + 0x14]
mov dword [esp + 0x2c], ebp
call fcn.0057a3a0
mov ecx, dword [esp + 0x24]
cmp ecx, ebp
je 0x5da97a
mov edx, dword [esp + 0x28]
mov word [ecx + edx*2], bp
lea ebx, [ebx + eax*2]
lea eax, [esp + 0x24]
push eax
lea esi, [esp + 0x34]
call fcn.004a5720
mov edx, dword [esp + 0x30]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5da994
mov ecx, dword [esp + 0x1c]
sub eax, esi
mov esi, dword [esp + 0x20]
mov edi, eax
lea eax, [ecx + edi + 1]
cmp eax, esi
mov ebp, edx
jb 0x5da9de
cmp esi, 0x20000000
ja 0x5da9f7
lea ecx, [esi*4]
cmp ecx, eax
jae 0x5da9cc
add ecx, ecx
cmp ecx, eax
jb 0x5da9c6
push ecx
lea esi, [esp + 0x1c]
call fcn.00552ef0
test al, al
mov esi, dword [esp + 0x20]
je 0x5da9f7
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push edi
add edx, eax
push ebp
push edx
call fcn.006a4bd0
add esp, 0xc
add dword [esp + 0x1c], edi
movzx eax, word [ebx]
cmp ax, 0xd
je 0x5daa0a
cmp ax, 0xa
jne 0x5daa8f
mov ecx, dword [esp + 0x1c]
add ecx, 3
cmp ecx, esi
jb 0x5daa3c
cmp esi, 0x20000000
ja 0x5daa56
lea eax, [esi*4]
cmp eax, ecx
jae 0x5daa2e
add eax, eax
cmp eax, ecx
jb 0x5daa28
push eax
lea esi, [esp + 0x1c]
call fcn.00552ef0
test al, al
je 0x5daa56
mov eax, dword [esp + 0x1c]
mov cx, word [0x6ce230]
mov edx, dword [esp + 0x18]
mov word [eax + edx], cx
add eax, 2
mov dword [esp + 0x1c], eax
movzx eax, word [ebx]
test ax, ax
je 0x5daa8a
cmp ax, 0xd
movzx ecx, word [ebx + 2]
jne 0x5daa76
xor eax, eax
cmp cx, 0xa
sete al
add eax, 1
jmp 0x5daa8c
cmp ax, 0xa
jne 0x5daa8a
xor eax, eax
cmp cx, 0xd
sete al
add eax, 1
jmp 0x5daa8c
xor eax, eax
lea ebx, [ebx + eax*2]
mov eax, dword [esp + 0x234]
push eax
call fcn.0069c8fa
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0069c8fa
add esp, 8
cmp word [ebx], 0
jne 0x5da940
mov edi, dword [esp + 0x18]
test edi, edi
je 0x5daac3
mov edx, dword [esp + 0x1c]
mov byte [edx + edi], 0
cmp byte [esp + 0x1294], 0
mov eax, edi
je 0x5dabd1
test edi, edi
jne 0x5daadc
mov eax, 0x6bc0ce
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5daae0
mov ebx, dword [esp + 0x128c]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, edx
mov edx, dword [ebx]
push 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push edx
call ebp
cmp dword [esp + 0x14], 4
je 0x5dab2e
push edi
call fcn.0069c8fa
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1274
ret 0x10
cmp dword [esp + 0x10], 0
jbe 0x5dac49
mov ecx, dword [esp + 0x1288]
lea eax, [esp + 0x238]
add ecx, 0x208
push eax
call fcn.0049b350
mov esi, dword [esp + 0x10]
add esi, 7
and esi, 0xfffffff8
push esi
call fcn.0069c0de
mov edi, eax
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x5dab75
mov eax, 0x6bc0ce
mov ecx, dword [esp + 0x10]
push ecx
push eax
push edi
call fcn.006a4bd0
add esp, 0xc
push esi
push edi
lea eax, [esp + 0x240]
call fcn.0049b990
mov eax, dword [ebx]
push 0
lea edx, [esp + 0x18]
push edx
push esi
push edi
push eax
call ebp
push edi
call fcn.0069c8fa
cmp dword [esp + 0x18], esi
je 0x5dabc8
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0069c8fa
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1274
ret 0x10
mov edi, dword [esp + 0x1c]
add esp, 4
jmp 0x5dac49
test edi, edi
jne 0x5dabda
mov eax, 0x6bc0ce
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5dabe0
mov ebx, dword [esp + 0x128c]
mov ecx, dword [ebx]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, edx
push 0
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x18], eax
push 4
lea eax, [esp + 0x1c]
push eax
push ecx
call esi
cmp dword [esp + 0x14], 4
jne 0x5dab16
mov ecx, dword [esp + 0x10]
test ecx, ecx
jbe 0x5dac49
test edi, edi
mov eax, edi
jne 0x5dac2d
mov eax, 0x6bc0ce
push 0
lea edx, [esp + 0x18]
push edx
push ecx
push eax
mov eax, dword [ebx]
push eax
call esi
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x10]
jne 0x5dab16
push edi
call fcn.0069c8fa
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1274
ret 0x10