Function at 0x53fa3a
Capabilities:
Write file on windows

Disassembly:
mov al, byte [edx]
mov byte [ebp - 0x2d], al
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x34], 1
cmp ecx, 0xfde9
jne 0x53f9c5
mov eax, dword [eax*4 + 0x552f18]
mov ecx, ebx
add eax, 0x2e
add eax, edi
mov dword [ebp - 0x48], eax
cmp byte [eax], 0
je 0x53f8b6
inc ecx
inc eax
cmp ecx, 5
jl 0x53f8aa
mov edi, dword [ebp - 0x54]
sub edi, edx
mov dword [ebp - 0x34], ecx
test ecx, ecx
jle 0x53f96a
mov eax, dword [ebp - 0x48]
movzx eax, byte [eax]
movsx eax, byte [eax + 0x5525b0]
mov esi, 0x5525b080
add byte [eax - 0x77], al
inc ebp
enter 0xffffffffffffc12b, 0xffffffffffffff89
inc ebp
mov ah, 0x3b
invalid
jg 0x53fb05
mov edi, ebx
mov ebx, dword [ebp - 0x48]
mov al, byte [ebx]
mov byte [ebp + edi - 0x18], al
inc edi
inc ebx
cmp edi, ecx
jl 0x53f8e9
mov esi, dword [ebp - 0x4c]
xor ebx, ebx
test esi, esi
jle 0x53f911
push esi
lea eax, [ebp - 0x18]
add eax, ecx
push edx
push eax
call fcn.00532e60
mov ecx, dword [ebp - 0x34]
add esp, 0xc
mov edi, dword [ebp - 0x50]
mov edx, ebx
mov esi, dword [ebp - 0x44]
mov eax, dword [esi*4 + 0x552f18]
add eax, edi
mov byte [eax + edx + 0x2e], bl
inc edx
cmp edx, ecx
jl 0x53f919
push dword [ebp - 0x3c]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x78]
xor eax, eax
mov dword [ebp - 0x78], ebx
cmp dword [ebp - 0x38], 4
push ecx
sete al
mov dword [ebp - 0x74], ebx
inc eax
push eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00541ee3
add esp, 0x14
cmp eax, 0xffffffff
je 0x53fb7c
jmp 0x53f9b9
movzx eax, byte [edx]
movsx ecx, byte [eax + 0x5525b0]
inc ecx
mov dword [ebp - 0x4c], ecx
cmp ecx, edi
jg 0x53fb32
push dword [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x80], ebx
cmp ecx, 4
mov dword [ebp - 0x7c], ebx
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x38], edx
sete al
inc eax
push ecx
push eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00541ee3
add esp, 0x14
cmp eax, 0xffffffff
je 0x53fb7c
mov edi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x4c]
dec eax
jmp 0x53fa54
mov ecx, dword [eax*4 + 0x552f18]
mov dword [ebp - 0x4c], ecx
mov ah, byte [ecx + edi + 0x2d]
test ah, 4
je 0x53f9f6
mov al, byte [ecx + edi + 0x2e]
and ah, 0xfb
push dword [ebp - 0x3c]
mov byte [ebp - 0x20], al
mov al, byte [edx]
mov byte [ebp - 0x1f], al
mov byte [ecx + edi + 0x2d], ah
lea eax, [ebp - 0x20]
push 2
push eax
jmp 0x53fa3c
inc esi
inc esi
mov eax, dword [ebp - 0x3c]
movzx ecx, byte [edx]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
cmp word [eax + ecx*2], bx
jge 0x53fa36
lea eax, [edx + 1]
mov dword [ebp - 0x38], eax
cmp eax, dword [ebp - 0x54]
jae 0x53fb53
push dword [ebp - 0x3c]
lea eax, [ebp - 0x40]
push 2
push edx
push eax
call fcn.0053aee6
add esp, 0x10
cmp eax, 0xffffffff
je 0x53fb7c
mov eax, dword [ebp - 0x38]
jmp 0x53fa54
push dword [ebp - 0x3c]
push 1
push edx
lea eax, [ebp - 0x40]
push eax
call fcn.0053aee6
add esp, 0x10
cmp eax, 0xffffffff
je 0x53fb7c
mov eax, dword [ebp - 0x2c]
push ebx
push ebx
inc eax
push 5
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x34]
lea eax, [ebp - 0x40]
push eax
push ebx
push dword [ebp - 0x6c]
call fcn.0053cddc
add esp, 0x20
mov dword [ebp - 0x38], eax
test eax, eax
je 0x53fb7c
push ebx
lea ecx, [ebp - 0x5c]
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x53fb74
mov eax, dword [esi + 8]
sub eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x2c]
add eax, edx
mov dword [ebp - 0x48], eax
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x5c], eax
jb 0x53fb7c
cmp byte [ebp - 0x2d], 0xa
jne 0x53faf8
push 0xd
pop eax
push ebx
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x5c]
push eax
push 1
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x53fb74
cmp dword [ebp - 0x5c], 1
jb 0x53fb7c
inc dword [esi + 8]
inc dword [esi + 4]
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x48], eax
cmp edx, dword [ebp - 0x54]
jae 0x53fb7c
mov ecx, dword [ebp - 0x70]
jmp 0x53f87b
test edi, edi
jle 0x53fb2d
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx*4 + 0x552f18]
add edx, dword [ebp - 0x50]
mov cl, byte [ebx + eax]
add edx, ebx
inc ebx
mov byte [edx + esi + 0x2e], cl
cmp ebx, edi
jl 0x53fb0f
mov esi, dword [ebp + 8]
add dword [esi + 4], edi
jmp 0x53fb7c
test edi, edi
jle 0x53fb2d
mov esi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax*4 + 0x552f18]
mov al, byte [ebx + edx]
add ecx, esi
mov byte [ecx + ebx + 0x2e], al
inc ebx
cmp ebx, edi
jl 0x53fb39
jmp 0x53fb2a
mov eax, dword [ebp - 0x4c]
mov cl, byte [edx]
mov byte [eax + edi + 0x2e], cl
mov eax, dword [ebp - 0x44]
mov eax, dword [eax*4 + 0x552f18]
or byte [eax + edi + 0x2d], 4
mov eax, dword [ebp - 0x48]
inc eax
mov dword [esi + 4], eax
jmp 0x53fb7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
add byte [eax], al