Function at 0x40deea
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x55e48a
call fcn.0053c1d0
push ecx
mov eax, 0x120c
call fcn.0053aa40
mov eax, dword [0x5af710]
xor eax, ebp
push ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1030], ecx
mov dword [ebp - 0x1060], eax
je 0x40e49f
cmp dword [ebp + 8], 0xffffffff
je 0x40e49f
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40e49f
mov edi, dword [ebp + 0x10]
cmp edi, esi
jne 0x40df4c
cmp dword [ebp + 0x14], esi
je 0x40e630
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1034], esi
mov dword [ebp - 0x103c], edi
mov dword [ebp - 0x1038], eax
mov dword [ebp - 0x102c], esi
xor ebx, ebx
mov dword [ebp + 0x14], esi
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [ebp - 0x1038]
ja 0x40e630
jb 0x40df85
cmp ebx, edi
jae 0x40e630
mov eax, dword [ebp + 0x18]
cmp eax, esi
je 0x40df94
cmp dword [eax], esi
jne 0x40e49f
mov edx, dword [ebp - 0x1038]
mov eax, edi
sub eax, ebx
sbb edx, ecx
mov dword [ebp - 0x1050], edx
jne 0x40dfaf
cmp eax, 0x1000
jb 0x40dfb9
push 0xa
push esi
push 0x1000
jmp 0x40dfc1
push 0xa
mov eax, edi
push esi
sub eax, ebx
push eax
lea eax, [ebp - 0x1014]
push eax
push dword [ebp + 8]
call fcn.00503f15
add esp, 0x14
cmp eax, esi
mov dword [ebp - 0x1018], eax
jg 0x40e229
xor ebx, ebx
inc ebx
push ebx
push 2
lea ecx, [ebp - 0x119c]
call fcn.00404a20
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x119c]
push str.myrecv_LastError:
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.0040bbec
mov edi, 0x204
cmp dword [0x5b21c0], edi
jne 0x40e205
lea eax, [ebp - 0x1028]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push ebx
push 2
lea ecx, [ebp - 0x111c]
call fcn.00404a20
mov esi, 0x572a6c
push esi
lea eax, [ebp - 0x109c]
push eax
lea ecx, [ebp - 0x119c]
mov byte [ebp - 4], bl
call fcn.00407320
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 2
jb 0x40e06c
mov eax, dword [eax + 4]
jmp 0x40e06f
add eax, 4
push eax
push 0x572a4c
push esi
push 0x572a48
push edi
push 0x572a40
push dword [ebp - 0x101c]
mov eax, 0x572a3c
push eax
push dword [ebp - 0x101e]
mov edx, 0x572a38
push eax
push dword [ebp - 0x1020]
mov ecx, 0x572a34
push edx
push dword [ebp - 0x1022]
push ecx
push dword [ebp - 0x1026]
push ecx
push dword [ebp - 0x1028]
push edx
push 0x36f
push eax
push 0x5c
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1050], esp
push str..DownLoadFile.cpp
call fcn.00405500
lea eax, [ebp - 0x1080]
push eax
call fcn.00407150
add esp, 0x24
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 3
jb 0x40e0f5
mov eax, dword [eax + 4]
jmp 0x40e0f8
add eax, 4
push eax
lea eax, [ebp - 0x111c]
push 0x572a0c
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.004040c0
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.004040c0
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push 0
push ebx
lea ecx, [ebp - 0x1080]
call fcn.00402c50
push 0
push ebx
lea ecx, [ebp - 0x109c]
mov byte [ebp - 4], 1
call fcn.00402c50
lea eax, [ebp - 0x111c]
push eax
call fcn.00407930
pop ecx
lea ecx, [ebp - 0x10d0]
mov byte [ebp - 4], 0
call fcn.004028d0
lea ecx, [ebp - 0x10d0]
mov dword [ebp - 0x10d0], 0x572840
call fcn.0054dfcb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1150]
call fcn.004028d0
mov dword [ebp - 0x1150], 0x572840
lea ecx, [ebp - 0x1150]
jmp 0x40e49a
push esi
lea eax, [ebp - 0x1064]
push eax
push dword [ebp - 0x1018]
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x1060]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40e4bc
xor ebx, ebx
inc ebx
push ebx
push 2
lea ecx, [ebp - 0x121c]
call fcn.00404a20
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x121c]
push 0x572d70
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.0040bbec
mov edi, 0x204
cmp dword [0x5b21c0], edi
jne 0x40e47b
lea eax, [ebp - 0x1028]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push ebx
push 2
lea ecx, [ebp - 0x111c]
call fcn.00404a20
mov esi, 0x572a6c
push esi
lea eax, [ebp - 0x1080]
push eax
lea ecx, [ebp - 0x121c]
mov byte [ebp - 4], 5
call fcn.00407320
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 6
jb 0x40e2e2
mov eax, dword [eax + 4]
jmp 0x40e2e5
add eax, 4
push eax
push 0x572a4c
push esi
push 0x572a48
push edi
push 0x572a40
push dword [ebp - 0x101c]
mov eax, 0x572a3c
push eax
push dword [ebp - 0x101e]
mov edx, 0x572a38
push eax
push dword [ebp - 0x1020]
mov ecx, 0x572a34
push edx
push dword [ebp - 0x1022]
push ecx
push dword [ebp - 0x1026]
push ecx
push dword [ebp - 0x1028]
push edx
push 0x377
push eax
push 0x5c
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1050], esp
push str..DownLoadFile.cpp
call fcn.00405500
lea eax, [ebp - 0x109c]
push eax
call fcn.00407150
add esp, 0x24
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 7
jb 0x40e36b
mov eax, dword [eax + 4]
jmp 0x40e36e
add eax, 4
push eax
lea eax, [ebp - 0x111c]
push 0x572a0c
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.004040c0
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.004040c0
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push 0
push ebx
lea ecx, [ebp - 0x109c]
call fcn.00402c50
push 0
push ebx
lea ecx, [ebp - 0x1080]
mov byte [ebp - 4], 5
call fcn.00402c50
lea eax, [ebp - 0x111c]
push eax
call fcn.00407930
pop ecx
lea ecx, [ebp - 0x10d0]
mov byte [ebp - 4], 4
call fcn.004028d0
lea ecx, [ebp - 0x10d0]
mov dword [ebp - 0x10d0], 0x572840
call fcn.0054dfcb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x11d0]
call fcn.004028d0
mov dword [ebp - 0x11d0], 0x572840
lea ecx, [ebp - 0x11d0]
call fcn.0054dfcb
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053aaae
leave
ret 0x14
mov eax, dword [ebp - 0x1018]
cdq
add ebx, eax
mov eax, dword [ebp - 0x1030]
adc dword [ebp + 0x14], edx
cmp dword [eax + 0x90], esi
mov dword [ebp + 0x10], ebx
je 0x40e609
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x1038]
mov dword [ebp - 0x1040], eax
mov ecx, bind
and eax, ecx
mov dword [ebp - 0x101c], eax
mov eax, bind
and dword [ebp - 0x1040], eax
mov dword [ebp - 0x1020], ebx
fild qword [ebp - 0x1020]
mov dword [ebp - 0x1044], esi
fild qword [ebp - 0x1044]
mov dword [ebp - 0x1058], edx
and dword [ebp - 0x1058], ecx
mov dword [ebp - 0x1048], edx
and dword [ebp - 0x1048], eax
fchs
faddp st(1)
mov dword [ebp - 0x105c], edi
fild qword [ebp - 0x105c]
mov dword [ebp - 0x104c], esi
fild qword [ebp - 0x104c]
fchs
faddp st(1)
fdivp st(1)
fmul qword [0x572d68]
call fcn.0053c5a8
mov esi, eax
cmp esi, dword [ebp - 0x1034]
mov dword [ebp - 0x1018], esi
je 0x40e607
push 5
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x40e607
push 0x20
mov dword [ebp - 0x1034], esi
mov dword [ebp - 4], 8
call fcn.0055044f
mov edi, eax
test edi, edi
pop ecx
je 0x40e5a7
mov ecx, edi
call fcn.00403480
jmp 0x40e5c7
xor edi, edi
jmp 0x40e5c7
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x40e601
mov eax, dword [ebp - 0x1030]
push 0xffffffffffffffff
push 0
add eax, 0x70
push eax
mov ecx, edi
call fcn.00404360
mov eax, dword [ebp - 0x1030]
push edi
push 2
push 0x40a
mov dword [edi + 0x1c], esi
push dword [eax + 0x90]
call dword [sym.imp.USER32.dll_PostMessageA]
mov edi, dword [ebp - 0x103c]
xor esi, esi
inc dword [ebp - 0x102c]
mov eax, dword [ebp - 0x102c]
push 0x14
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x40df6c
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40df6c
xor eax, eax
inc eax
jmp 0x40e4a1