Function at 0x4e2590
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x698b9c]
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.005c5252
add esp, 4
mov dword [ebp - 0x70], eax
push 0x10
push 0
lea ecx, [ebp - 0x10]
push ecx
call fcn.005bfd50
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.004e1760
add esp, 8
mov byte [ebp - 8], al
movzx eax, byte [ebp - 7]
push eax
call fcn.004e16a0
add esp, 4
movzx ecx, byte [ebp - 8]
imul eax, ecx
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 8
jl 0x4e262b
mov edx, dword [ebp - 0x74]
shr edx, 3
imul edx, dword [ebp + 0xc]
mov dword [ebp - 0x90], edx
jmp 0x4e263e
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.005c052e
add esp, 4
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
jne 0x4e2696
xor eax, eax
jmp 0x4e28da
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.0056c100
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x60], 0
jmp 0x4e2707
mov edx, dword [ebp - 0x60]
add edx, 1
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x70]
jge 0x4e27bb
cmp dword [ebp + 0x10], 0
jle 0x4e272e
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 0x4e273b
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.004e1cc0
add esp, 0x14
mov eax, dword [ebp - 0x14]
add eax, 1
and eax, reloc.WS2_32.dll_accept
jns 0x4e2770
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.004e1880
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.0056c720
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
je 0x4e27b6
jmp 0x4e27bb
jmp 0x4e26fe
cmp dword [ebp - 0x80], 0
jne 0x4e27e3
push 4
lea ecx, [ebp - 0x5c]
push ecx
call fcn.0056c720
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x88], edx
lea eax, [ebp - 0x5c]
push eax
call fcn.0056d7d0
jmp 0x4e27ec
lea ecx, [ebp - 0x5c]
push ecx
call fcn.0056d7d0
cmp dword [ebp - 0x80], 1
jne 0x4e28c9
cmp dword [ebp - 0x88], 0
jle 0x4e28c9
mov edx, dword [ebp - 0x88]
push edx
call fcn.004e1650
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.004e1840
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004e1650
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.005c235a
add esp, 0x10
cmp eax, 1
jne 0x4e28c9
mov eax, dword [ebp + 8]
push eax
push 1
push 4
lea ecx, [ebp - 0x6c]
push ecx
call fcn.005c235a
add esp, 0x10
cmp eax, 1
jne 0x4e28c9
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.005c235a
add esp, 0x10
cmp eax, 1
jne 0x4e28c9
mov edx, dword [ebp + 8]
push edx
push 1
push 4
lea eax, [ebp - 0x1c]
push eax
call fcn.005c235a
add esp, 0x10
cmp eax, 1
jne 0x4e28c9
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.005c05f8
add esp, 4
mov eax, 1
jmp 0x4e28da
mov edx, dword [ebp - 0x84]
push edx
call fcn.005c05f8
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0x64]
xor ecx, ebp
call fcn.005bfcb8
mov esp, ebp
pop ebp
ret