Function at 0x49e418
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff4c
mov eax, 0x4cd598
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 [0x4cd463]
mov word [ebp - 0x5f], dx
mov dl, byte [0x4cd465]
mov byte [ebp - 0x5d], dl
mov ecx, dword [ebp + 8]
mov al, byte [ecx + 1]
cmp al, 1
jne 0x49e489
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 0x49e9e6
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
add edx, 0x24
lea eax, [ebp - 8]
call fcn.004af384
mov ecx, dword [ebp - 0x70]
mov al, byte [ecx]
mov byte [ebp - 0x2c], al
mov edx, dword [ebp - 0x70]
mov cl, byte [edx + 1]
mov byte [ebp - 0x2b], cl
mov eax, dword [ebp - 0x70]
mov dl, byte [eax + 2]
mov byte [ebp - 0x2a], dl
mov ecx, dword [ebp - 0x70]
mov eax, dword [ecx + 3]
mov dword [ebp - 0x29], eax
mov edx, dword [ebp - 0x70]
mov ecx, dword [edx + 7]
mov dword [ebp - 0x25], ecx
mov eax, dword [ebp - 0x70]
mov edx, dword [eax + 0xb]
mov dword [ebp - 0x21], edx
mov ecx, dword [ebp - 0x70]
mov eax, dword [ecx + 0xf]
mov dword [ebp - 0x1d], eax
mov edx, dword [ebp - 0x70]
mov ecx, dword [edx + 0x13]
mov dword [ebp - 0x19], ecx
mov eax, dword [ebp - 0x70]
mov edx, dword [eax + 0x17]
mov dword [ebp - 0x15], edx
mov ecx, dword [ebp - 0x70]
mov al, byte [ecx + 0x1b]
mov byte [ebp - 0x11], al
mov edx, dword [ebp - 0x70]
mov ecx, dword [edx + 0x1c]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x70]
mov edx, dword [eax + 0x20]
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0x70]
mov eax, dword [ecx + 0x28]
mov dword [ebp - 4], eax
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 0x49e565
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 0x49e9e6
lea ecx, [ebp - 0x90]
push ecx
lea eax, [ebp - 0x2c]
push eax
call fcn.0049db94
add esp, 8
push 0
lea edx, [ebp - 0x58]
push edx
push 0x20
lea ecx, [ebp - 0x90]
push ecx
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
push 0x10000
call fcn.004a3a40
pop ecx
mov dword [ebp - 0x5c], eax
mov al, byte [ebp - 0x2b]
mov byte [ebp - 0xb4], al
mov edx, dword [ebp - 0x21]
mov dword [ebp - 0xb3], edx
mov ecx, dword [ebp - 0x1d]
mov dword [ebp - 0xaf], ecx
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x9b], eax
lea edx, [ebp - 0x5f]
mov dword [ebp - 0x9f], edx
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x97], ecx
mov al, byte [ebp - 0x2a]
sub al, 1
jb 0x49e5f5
je 0x49e6ea
dec al
je 0x49e7cc
dec al
je 0x49e8ae
jmp 0x49e9b4
mov edx, dword [ebp - 0x21]
sar edx, 1
jns 0x49e5ff
adc edx, 0
mov dword [ebp - 0xb3], edx
mov dword [ebp - 0x68], 0x20
mov cl, byte [ebp - 0x68]
mov byte [ebp - 0x5f], cl
mov byte [ebp - 0x5e], 0
lea eax, [ebp - 0xb4]
push eax
call fcn.0049dd8c
pop ecx
mov dword [ebp - 0x64], eax
push 0
lea edx, [ebp - 0x58]
push edx
push dword [ebp - 0x64]
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
inc dword [ebp - 0x68]
mov ecx, dword [ebp - 0x68]
cmp ecx, 0x7f
jle 0x49e60c
mov eax, dword [ebp - 0x21]
mov dword [ebp - 0xb3], eax
mov dword [ebp - 0x68], 0xa1
mov dword [ebp - 0x6c], 0x40
mov edx, dword [ebp - 0x6c]
cmp edx, 0x7f
jne 0x49e66b
mov dword [ebp - 0x6c], 0xa1
mov cl, byte [ebp - 0x68]
mov byte [ebp - 0x5f], cl
mov al, byte [ebp - 0x6c]
mov byte [ebp - 0x5e], al
mov byte [ebp - 0x5d], 0
lea edx, [ebp - 0xb4]
push edx
call fcn.0049dd8c
pop ecx
mov dword [ebp - 0x64], eax
push 0
lea ecx, [ebp - 0x58]
push ecx
push dword [ebp - 0x64]
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
inc dword [ebp - 0x6c]
mov eax, dword [ebp - 0x6c]
cmp eax, 0xfe
jle 0x49e65c
mov edx, dword [ebp - 0x68]
add edx, 0xffffff5f
imul eax, edx, 0x64
mov ecx, 0x5d
cdq
idiv ecx
push eax
call fcn.0049db78
pop ecx
mov eax, dword [0x4d3af4]
mov eax, dword [eax]
call fcn.0046b1f8
inc dword [ebp - 0x68]
mov edx, dword [ebp - 0x68]
cmp edx, 0xfe
jle 0x49e655
jmp 0x49e9b4
mov ecx, dword [ebp - 0x21]
sar ecx, 1
jns 0x49e6f4
adc ecx, 0
mov dword [ebp - 0xb3], ecx
mov dword [ebp - 0x68], 0x20
mov al, byte [ebp - 0x68]
mov byte [ebp - 0x5f], al
mov byte [ebp - 0x5e], 0
lea edx, [ebp - 0xb4]
push edx
call fcn.0049dd8c
pop ecx
mov dword [ebp - 0x64], eax
push 0
lea ecx, [ebp - 0x58]
push ecx
push dword [ebp - 0x64]
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
inc dword [ebp - 0x68]
mov eax, dword [ebp - 0x68]
cmp eax, 0x7f
jle 0x49e701
mov edx, dword [ebp - 0x21]
mov dword [ebp - 0xb3], edx
mov dword [ebp - 0x68], 0x81
mov dword [ebp - 0x6c], 0x40
mov cl, byte [ebp - 0x68]
mov byte [ebp - 0x5f], cl
mov al, byte [ebp - 0x6c]
mov byte [ebp - 0x5e], al
mov byte [ebp - 0x5d], 0
lea edx, [ebp - 0xb4]
push edx
call fcn.0049dd8c
pop ecx
mov dword [ebp - 0x64], eax
push 0
lea ecx, [ebp - 0x58]
push ecx
push dword [ebp - 0x64]
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
inc dword [ebp - 0x6c]
mov eax, dword [ebp - 0x6c]
cmp eax, 0xfe
jle 0x49e751
mov edx, dword [ebp - 0x68]
add edx, 0xffffff7f
imul eax, edx, 0x64
mov ecx, 0x7d
cdq
idiv ecx
push eax
call fcn.0049db78
pop ecx
mov eax, dword [0x4d3af4]
mov eax, dword [eax]
call fcn.0046b1f8
inc dword [ebp - 0x68]
mov edx, dword [ebp - 0x68]
cmp edx, 0xfe
jle 0x49e74a
jmp 0x49e9b4
mov ecx, dword [ebp - 0x21]
sar ecx, 1
jns 0x49e7d6
adc ecx, 0
mov dword [ebp - 0xb3], ecx
mov dword [ebp - 0x68], 0x20
mov al, byte [ebp - 0x68]
mov byte [ebp - 0x5f], al
mov byte [ebp - 0x5e], 0
lea edx, [ebp - 0xb4]
push edx
call fcn.0049dd8c
pop ecx
mov dword [ebp - 0x64], eax
push 0
lea ecx, [ebp - 0x58]
push ecx
push dword [ebp - 0x64]
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
inc dword [ebp - 0x68]
mov eax, dword [ebp - 0x68]
cmp eax, 0x7f
jle 0x49e7e3
mov edx, dword [ebp - 0x21]
mov dword [ebp - 0xb3], edx
mov dword [ebp - 0x68], 0xa1
mov dword [ebp - 0x6c], 0xa0
mov cl, byte [ebp - 0x68]
mov byte [ebp - 0x5f], cl
mov al, byte [ebp - 0x6c]
mov byte [ebp - 0x5e], al
mov byte [ebp - 0x5d], 0
lea edx, [ebp - 0xb4]
push edx
call fcn.0049dd8c
pop ecx
mov dword [ebp - 0x64], eax
push 0
lea ecx, [ebp - 0x58]
push ecx
push dword [ebp - 0x64]
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
inc dword [ebp - 0x6c]
mov eax, dword [ebp - 0x6c]
cmp eax, 0xfe
jle 0x49e833
mov edx, dword [ebp - 0x68]
add edx, 0xffffff5f
imul eax, edx, 0x64
mov ecx, 0x5d
cdq
idiv ecx
push eax
call fcn.0049db78
pop ecx
mov eax, dword [0x4d3af4]
mov eax, dword [eax]
call fcn.0046b1f8
inc dword [ebp - 0x68]
mov edx, dword [ebp - 0x68]
cmp edx, 0xfe
jle 0x49e82c
jmp 0x49e9b4
mov ecx, dword [ebp - 0x21]
sar ecx, 1
jns 0x49e8b8
adc ecx, 0
mov dword [ebp - 0xb3], ecx
mov dword [ebp - 0x68], 0x20
mov eax, dword [ebp - 0x68]
cmp eax, 0x80
jne 0x49e8d6
mov dword [ebp - 0x68], 0xa0
mov dl, byte [ebp - 0x68]
mov byte [ebp - 0x5f], dl
mov byte [ebp - 0x5e], 0
lea ecx, [ebp - 0xb4]
push ecx
call fcn.0049dd8c
pop ecx
mov dword [ebp - 0x64], eax
push 0
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x64]
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
inc dword [ebp - 0x68]
mov edx, dword [ebp - 0x68]
cmp edx, 0xdf
jle 0x49e8c5
mov ecx, dword [ebp - 0x21]
mov dword [ebp - 0xb3], ecx
mov dword [ebp - 0x68], 0x81
mov eax, dword [ebp - 0x68]
cmp eax, 0xa0
jne 0x49e933
mov dword [ebp - 0x68], 0xe0
mov dword [ebp - 0x6c], 0x40
mov dl, byte [ebp - 0x68]
mov byte [ebp - 0x5f], dl
mov cl, byte [ebp - 0x6c]
mov byte [ebp - 0x5e], cl
mov byte [ebp - 0x5d], 0
lea eax, [ebp - 0xb4]
push eax
call fcn.0049dd8c
pop ecx
mov dword [ebp - 0x64], eax
push 0
lea edx, [ebp - 0x58]
push edx
push dword [ebp - 0x64]
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_WriteFile
inc dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x6c]
cmp ecx, 0xfc
jle 0x49e93a
mov eax, dword [ebp - 0x68]
add eax, 0xffffff7f
imul eax, eax, 0x64
mov ecx, 0x7b
cdq
idiv ecx
push eax
call fcn.0049db78
pop ecx
mov eax, dword [0x4d3af4]
mov eax, dword [eax]
call fcn.0046b1f8
inc dword [ebp - 0x68]
mov edx, dword [ebp - 0x68]
cmp edx, 0xfc
jle 0x49e922
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
mov esp, ebp
pop ebp
ret