Function at 0x49dfec
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe38
push ebx
mov eax, 0x4cd558
call fcn.004a44b4
mov word [ebp - 0x40], 8
lea eax, [ebp - 8]
call fcn.00401ed0
inc dword [ebp - 0x34]
inc dword [ebp - 0x34]
mov word [ebp - 0x40], 0x14
mov dx, word [0x4cd461]
mov word [ebp - 0x76], dx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x80]
add edx, 0x24
lea eax, [ebp - 8]
call fcn.004af384
mov ecx, dword [ebp - 0x80]
mov al, byte [ecx]
mov byte [ebp - 0x2c], al
mov edx, dword [ebp - 0x80]
mov cl, byte [edx + 1]
mov byte [ebp - 0x2b], cl
mov eax, dword [ebp - 0x80]
mov dl, byte [eax + 2]
mov byte [ebp - 0x2a], dl
mov ecx, dword [ebp - 0x80]
mov eax, dword [ecx + 3]
mov dword [ebp - 0x29], eax
mov edx, dword [ebp - 0x80]
mov ecx, dword [edx + 7]
mov dword [ebp - 0x25], ecx
mov eax, dword [ebp - 0x80]
mov edx, dword [eax + 0xb]
mov dword [ebp - 0x21], edx
mov ecx, dword [ebp - 0x80]
mov eax, dword [ecx + 0xf]
mov dword [ebp - 0x1d], eax
mov edx, dword [ebp - 0x80]
mov ecx, dword [edx + 0x13]
mov dword [ebp - 0x19], ecx
mov eax, dword [ebp - 0x80]
mov edx, dword [eax + 0x17]
mov dword [ebp - 0x15], edx
mov ecx, dword [ebp - 0x80]
mov al, byte [ecx + 0x1b]
mov byte [ebp - 0x11], al
mov edx, dword [ebp - 0x80]
mov ecx, dword [edx + 0x1c]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x80]
mov edx, dword [eax + 0x20]
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0x80]
mov eax, dword [ecx + 0x28]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov cl, byte [edx + 0x1b]
test cl, cl
jne 0x49e0f4
mov eax, dword [ebp + 8]
mov edx, dword [eax + 3]
test edx, edx
jl 0x49e0ce
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 7]
cmp eax, 0xff
jle 0x49e0f4
xor eax, eax
push eax
dec dword [ebp - 0x34]
dec dword [ebp - 0x34]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004af354
pop eax
mov edx, dword [ebp - 0x50]
mov dword fs:[0], edx
jmp 0x49e410
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 7]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 3]
cmp eax, ecx
jge 0x49e12a
xor eax, eax
push eax
dec dword [ebp - 0x34]
dec dword [ebp - 0x34]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004af354
pop eax
mov edx, dword [ebp - 0x50]
mov dword fs:[0], edx
jmp 0x49e410
push 0
push closesocket
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
add eax, 0x24
call fcn.004091cc
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
cmp edx, 0xffffffff
jne 0x49e17e
xor eax, eax
push eax
dec dword [ebp - 0x34]
dec dword [ebp - 0x34]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004af354
pop eax
mov edx, dword [ebp - 0x50]
mov dword fs:[0], edx
jmp 0x49e410
mov ecx, dword [ebp + 8]
mov al, byte [ecx + 0x1b]
test al, al
jne 0x49e1d6
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 7]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 3]
sub ecx, edx
inc ecx
mov dword [ebp - 0x68], ecx
xor ecx, ecx
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x68]
cmp eax, edx
jge 0x49e1cb
mov cl, byte [ebp - 0x64]
mov eax, dword [ebp + 8]
mov dl, byte [eax + 3]
add cl, dl
mov eax, dword [ebp - 0x64]
mov byte [ebp + eax - 0x1a4], cl
inc dword [ebp - 0x64]
mov edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x68]
cmp edx, ecx
jl 0x49e1a9
lea eax, [ebp - 0x1a4]
mov dword [ebp - 0x74], eax
jmp 0x49e1e8
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x1c]
mov dword [ebp - 0x74], ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x20]
mov dword [ebp - 0x68], edx
mov cl, byte [ebp - 0x2b]
cmp cl, 1
jne 0x49e1f4
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x15], eax
lea edx, [ebp - 0xa0]
push edx
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0049db94
add esp, 8
mov eax, dword [ebp - 0x68]
add eax, eax
lea eax, [eax + eax*2]
push eax
call fcn.004a3a40
pop ecx
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x68]
add edx, edx
lea edx, [edx + edx*2]
push edx
push 0
push dword [ebp - 0x5c]
call fcn.004a405c
add esp, 0xc
push 0
lea ecx, [ebp - 0x58]
push ecx
push 0x20
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
mov dl, byte [ebp - 0x11]
cmp dl, 1
jne 0x49e26e
push 0
lea ecx, [ebp - 0x58]
push ecx
mov eax, dword [ebp - 0x68]
add eax, eax
lea eax, [eax + eax*2]
push eax
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
push 0x10000
call fcn.004a3a40
pop ecx
mov dword [ebp - 0x60], eax
mov dl, byte [ebp - 0x2b]
mov byte [ebp - 0x1c8], dl
mov ecx, dword [ebp - 0x21]
mov dword [ebp - 0x1c7], ecx
mov eax, dword [ebp - 0x1d]
mov dword [ebp - 0x1c3], eax
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x1af], edx
lea ecx, [ebp - 0x76]
mov dword [ebp - 0x1b3], ecx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1ab], eax
mov edx, dword [ebp - 0x68]
add edx, edx
lea edx, [edx + edx*2]
add edx, 0x20
mov dword [ebp - 0x70], edx
xor ecx, ecx
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x68]
cmp eax, edx
jge 0x49e3a6
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x64]
mov dl, byte [ecx + eax]
mov byte [ebp - 0x76], dl
lea ecx, [ebp - 0x1c8]
push ecx
call fcn.0049dd8c
pop ecx
mov dword [ebp - 0x7c], eax
mov al, byte [ebp - 0x11]
cmp al, 1
jne 0x49e329
mov edx, dword [ebp - 0x64]
lea edx, [edx + edx*2]
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x74]
mov ebx, dword [ebp - 0x64]
mov al, byte [eax + ebx]
mov byte [ecx + edx*2], al
mov edx, dword [ebp - 0x64]
lea edx, [edx + edx*2]
mov ecx, dword [ebp - 0x5c]
mov byte [ecx + edx*2 + 1], 0
mov eax, dword [ebp - 0x64]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x70]
mov dword [edx + eax*2 + 2], ecx
mov al, byte [ebp - 0x2b]
cmp al, 1
jne 0x49e35f
mov dx, word [ebp - 0x1bf]
mov word [ebp - 0x6a], dx
push 0
lea ecx, [ebp - 0x58]
push ecx
push 2
lea eax, [ebp - 0x6a]
push eax
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
mov edx, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x70]
add edx, ecx
add edx, 2
mov dword [ebp - 0x70], edx
jmp 0x49e365
mov eax, dword [ebp - 0x7c]
add dword [ebp - 0x70], eax
push 0
lea edx, [ebp - 0x58]
push edx
push dword [ebp - 0x7c]
push dword [ebp - 0x60]
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
imul eax, dword [ebp - 0x64], 0x64
cdq
idiv dword [ebp - 0x68]
push eax
call fcn.0049db78
pop ecx
mov ecx, dword [0x4d3af4]
mov eax, dword [ecx]
call fcn.0046b1f8
inc dword [ebp - 0x64]
mov edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x68]
cmp edx, ecx
jl 0x49e2d3
mov al, byte [ebp - 0x11]
cmp al, 1
jne 0x49e3d5
push 0
push 0
push 0x20
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea edx, [ebp - 0x58]
push edx
mov ecx, dword [ebp - 0x68]
add ecx, ecx
lea ecx, [ecx + ecx*2]
push ecx
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
push dword [ebp - 0x60]
call fcn.004a3a50
pop ecx
push dword [ebp - 0x5c]
call fcn.004a3a50
pop ecx
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_CloseHandle
mov al, 1
push eax
dec dword [ebp - 0x34]
dec dword [ebp - 0x34]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004af354
pop eax
mov edx, dword [ebp - 0x50]
mov dword fs:[0], edx
pop ebx
mov esp, ebp
pop ebp
ret