Function at 0x4c19a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x64786c]
xor eax, ebp
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x6c], 0x49
mov byte [ebp - 0x6b], 0x44
mov byte [ebp - 0x6a], 0x41
mov byte [ebp - 0x69], 0x54
mov byte [ebp - 0x68], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0x10]
push eax
call fcn.0059c578
add esp, 4
mov dword [ebp - 0x70], eax
push 0x10
push 0
lea ecx, [ebp - 0x10]
push ecx
call fcn.00597130
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 7]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.004c0b70
add esp, 8
mov byte [ebp - 8], al
movzx eax, byte [ebp - 7]
push eax
call fcn.004c0ab0
add esp, 4
movzx ecx, byte [ebp - 8]
imul eax, ecx
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 8
jl 0x4c1a3b
mov edx, dword [ebp - 0x74]
shr edx, 3
imul edx, dword [ebp + 0xc]
mov dword [ebp - 0x90], edx
jmp 0x4c1a4e
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp - 0x74]
add eax, 7
shr eax, 3
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 0xc]
imul edx, dword [ebp + 0x14]
add edx, 0x1f
sar edx, 5
shl edx, 2
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x24]
add eax, 4
imul eax, dword [ebp - 0x70]
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x88]
lea eax, [edx + ecx*2 + 8]
push eax
call fcn.005974ee
add esp, 4
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
jne 0x4c1aa6
xor eax, eax
jmp 0x4c1cea
mov ecx, dword [ebp - 0x84]
add ecx, dword [ebp - 0x88]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x7c]
lea ecx, [eax + edx + 4]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], 0
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x50], eax
push 0x38
push str.1.2.11
push 0xffffffffffffffff
lea ecx, [ebp - 0x5c]
push ecx
call fcn.005434c0
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x60], 0
jmp 0x4c1b17
mov edx, dword [ebp - 0x60]
add edx, 1
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x70]
jge 0x4c1bcb
cmp dword [ebp + 0x10], 0
jle 0x4c1b3e
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x60]
sub ecx, 1
imul ecx, dword [ebp - 0x20]
add ecx, dword [ebp + 0x18]
mov dword [ebp - 0x18], ecx
jmp 0x4c1b4b
mov edx, dword [ebp - 0x60]
imul edx, dword [ebp - 0x20]
add edx, dword [ebp + 0x18]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + edx*4 - 0x7c]
add eax, 1
push eax
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.004c10d0
add esp, 0x14
mov eax, dword [ebp - 0x14]
add eax, 1
and eax, reloc.WS2_32.dll_accept
jns 0x4c1b80
dec eax
or eax, 0xfffffffe
inc eax
mov ecx, dword [ebp + eax*4 - 0x7c]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + eax*4 - 0x7c]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.004c0c90
add esp, 0x10
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + eax*4 - 0x7c]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x58], edx
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.00543ae0
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
je 0x4c1bc6
jmp 0x4c1bcb
jmp 0x4c1b0e
cmp dword [ebp - 0x80], 0
jne 0x4c1bf3
push 4
lea ecx, [ebp - 0x5c]
push ecx
call fcn.00543ae0
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x88], edx
lea eax, [ebp - 0x5c]
push eax
call fcn.00544b90
jmp 0x4c1bfc
lea ecx, [ebp - 0x5c]
push ecx
call fcn.00544b90
cmp dword [ebp - 0x80], 1
jne 0x4c1cd9
cmp dword [ebp - 0x88], 0
jle 0x4c1cd9
mov edx, dword [ebp - 0x88]
push edx
call fcn.004c0a60
add esp, 4
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
lea edx, [ebp - 0x6c]
push edx
call fcn.004c0c50
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004c0a60
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 8]
push ecx
push 1
push 4
lea edx, [ebp - 0x8c]
push edx
call fcn.005996fa
add esp, 0x10
cmp eax, 1
jne 0x4c1cd9
mov eax, dword [ebp + 8]
push eax
push 1
push 4
lea ecx, [ebp - 0x6c]
push ecx
call fcn.005996fa
add esp, 0x10
cmp eax, 1
jne 0x4c1cd9
mov edx, dword [ebp + 8]
push edx
push 1
mov eax, dword [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.005996fa
add esp, 0x10
cmp eax, 1
jne 0x4c1cd9
mov edx, dword [ebp + 8]
push edx
push 1
push 4
lea eax, [ebp - 0x1c]
push eax
call fcn.005996fa
add esp, 0x10
cmp eax, 1
jne 0x4c1cd9
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.005975b8
add esp, 4
mov eax, 1
jmp 0x4c1cea
mov edx, dword [ebp - 0x84]
push edx
call fcn.005975b8
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0x64]
xor ecx, ebp
call fcn.0059709c
mov esp, ebp
pop ebp
ret