Function at 0x4d3d70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fab49
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x654c54]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x164], ecx
mov eax, dword [ebp - 0x164]
movzx ecx, byte [eax + 0x581]
test ecx, ecx
je 0x4d3e15
mov edx, dword [ebp - 0x164]
movzx eax, byte [edx + 0x582]
test eax, eax
je 0x4d3dc7
mov al, 1
jmp 0x4d4130
push 1
mov ecx, dword [ebp - 0x164]
call fcn.004d9ba0
mov ecx, dword [ebp - 0x164]
mov byte [ecx + 0x5f4], 1
push 0
push 1
mov ecx, dword [ebp - 0x164]
add ecx, 0x5bc
call fcn.0052a700
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x11], al
movzx edx, byte [ebp - 0x11]
test edx, edx
jne 0x4d3e0e
xor al, al
jmp 0x4d4130
mov al, 1
jmp 0x4d4130
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.00528830
add esp, 0xc
mov dword [ebp - 0x168], eax
mov edx, dword [ebp - 0x168]
mov dword [ebp - 0x16c], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x16c]
push eax
call fcn.005286c0
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.004079f0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x18], 0x10
jb 0x4d3e79
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x170], eax
jmp 0x4d3e85
mov ecx, dword [ebp + 8]
add ecx, 4
mov dword [ebp - 0x170], ecx
push 0x612d08
mov edx, dword [ebp - 0x170]
push edx
call fcn.005cc851
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4d3f04
mov eax, dword [ebp - 0x164]
movzx ecx, byte [eax + 0x580]
test ecx, ecx
je 0x4d3efd
mov ecx, dword [ebp - 0x164]
call fcn.004d9ad0
push 1
push 0
mov ecx, dword [ebp - 0x164]
add ecx, 0x5bc
call fcn.0052a1a0
push 5
push 0x10
mov ecx, dword [ebp - 0x164]
add ecx, 0x5bc
call fcn.0052a1a0
push 1
push 0
mov ecx, dword [ebp - 0x164]
add ecx, 0x5bc
call fcn.0052a1a0
xor al, al
jmp 0x4d4130
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005ccec6
add esp, 0x10
mov edx, dword [ebp - 0x10]
push edx
call fcn.005cc711
add esp, 4
mov eax, dword [ebp - 0x164]
movzx ecx, byte [eax + 0x580]
test ecx, ecx
je 0x4d3f81
mov ecx, dword [ebp - 0x164]
call fcn.004d9ad0
push 1
push 0
mov ecx, dword [ebp - 0x164]
add ecx, 0x5bc
call fcn.0052a1a0
push 5
push 0x10
mov ecx, dword [ebp - 0x164]
add ecx, 0x5bc
call fcn.0052a1a0
push 1
push 1
mov ecx, dword [ebp - 0x164]
add ecx, 0x5bc
call fcn.0052a1a0
mov edx, dword [ebp - 0x164]
movzx eax, byte [edx + 0x575]
test eax, eax
je 0x4d412e
mov ecx, dword [ebp - 0x164]
movzx edx, byte [ecx + 0x574]
test edx, edx
je 0x4d412e
push str.Buffer
lea ecx, [ebp - 0x50]
call fcn.0040dbc0
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x6c]
push ecx
call fcn.00528020
add esp, 8
mov dword [ebp - 0x174], eax
mov edx, dword [ebp - 0x174]
mov dword [ebp - 0x178], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x10]
add eax, 1
push eax
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x178]
push edx
mov ecx, 0x6a25e8
call fcn.00539c60
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x6c]
call fcn.004079f0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x50]
call fcn.004079f0
cmp dword [ebp - 0x18], 0
je 0x4d412e
mov eax, dword [ebp - 0x18]
mov byte [eax], 1
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x18]
add eax, 1
push eax
call fcn.005ccf50
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, 0x6a25e8
call fcn.00539f70
mov edx, dword [ebp - 0x18]
push edx
mov ecx, 0x6a25e8
call fcn.00539e20
push str.Buffer
lea ecx, [ebp - 0xa4]
call fcn.0040dbc0
mov dword [ebp - 4], 3
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x88]
push ecx
call fcn.00528020
add esp, 8
mov dword [ebp - 0x17c], eax
mov edx, dword [ebp - 0x17c]
mov dword [ebp - 0x180], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xc0]
push ecx
call fcn.00528020
add esp, 8
mov dword [ebp - 0x184], eax
mov edx, dword [ebp - 0x184]
mov dword [ebp - 0x188], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x180]
push eax
lea ecx, [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 0x188]
push edx
mov ecx, 0x6a25e8
call fcn.00539bb0
mov byte [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0xc0]
call fcn.004079f0
mov byte [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0x88]
call fcn.004079f0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xa4]
call fcn.004079f0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc