Function at 0x4ada70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20ac
call fcn.005aa450
mov eax, dword [0x75aa5c]
xor eax, ebp
mov dword [ebp - 0x24], eax
push esi
mov dword [ebp - 0x20ac], ecx
cmp dword [ebp + 8], 0
je 0x4ada9a
cmp dword [ebp + 0xc], 0
jne 0x4adaa1
xor al, al
jmp 0x4ae3a7
lea ecx, [ebp - 0x10]
call fcn.004b0d10
xor eax, eax
mov word [ebp - 0x2028], ax
push 0x1ffe
push 0
lea ecx, [ebp - 0x2026]
push ecx
call fcn.005a7100
add esp, 0xc
call fcn.005a6020
mov dword [ebp - 0x20], eax
push str.X_GET_CHANNEL_LIST_RESPONSE
mov edx, dword [ebp - 0x20]
push edx
call fcn.005a6090
add esp, 8
mov dword [ebp - 0x1c], eax
push 0x6fb240
push 0x6fb248
mov eax, dword [ebp - 0x1c]
push eax
call fcn.005a5b80
add esp, 0xc
push 0x6fb258
push 0x6fb268
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005a5b80
add esp, 0xc
push 0x6fb278
push 0x6fb284
mov edx, dword [ebp - 0x1c]
push edx
call fcn.005a5b80
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
call fcn.005a7ce0
add esp, 4
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x2028]
push edx
call fcn.005b2f3b
add esp, 0xc
lea eax, [ebp - 0x2028]
push eax
push 0x6fb290
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005a5b80
add esp, 0xc
lea edx, [ebp - 0x2090]
push edx
mov ecx, dword [ebp - 0x20ac]
add ecx, 0x128
call fcn.004af160
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
jmp 0x4adb97
push 0
lea eax, [ebp - 0x2098]
push eax
lea ecx, [ebp - 0x10]
call fcn.004b0d70
lea ecx, [ebp - 0x20a0]
push ecx
mov ecx, dword [ebp - 0x20ac]
add ecx, 0x128
call fcn.004af180
push eax
lea ecx, [ebp - 0x10]
call fcn.004b0e10
movzx edx, al
test edx, edx
je 0x4ae2b0
lea ecx, [ebp - 0x10]
call fcn.004b0d50
mov eax, dword [eax + 4]
mov dword [ebp - 0x2058], eax
cmp dword [ebp - 0x2058], 0
jne 0x4adbdf
jmp 0x4adb86
lea ecx, [ebp - 0x10]
call fcn.004b0d50
push eax
lea ecx, [ebp - 0x2040]
push ecx
mov ecx, dword [ebp - 0x20ac]
add ecx, 0x170
call fcn.004af480
lea edx, [ebp - 0x20a8]
push edx
mov ecx, dword [ebp - 0x20ac]
add ecx, 0x170
call fcn.004af3c0
push eax
lea ecx, [ebp - 0x2040]
call fcn.004b0c80
movzx eax, al
test eax, eax
je 0x4adc30
jmp 0x4adb86
lea ecx, [ebp - 0x2040]
call fcn.004b0c20
mov ecx, dword [eax + 4]
mov dword [ebp - 0x2034], ecx
cmp dword [ebp - 0x2034], 0
jne 0x4adc52
jmp 0x4adb86
mov dword [ebp - 0x2030], 0
mov edx, dword [ebp - 0x2058]
movzx eax, word [edx + 0xa4]
test eax, eax
jne 0x4add59
push 0x6fb2a0
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005a5bc0
add esp, 8
mov dword [ebp - 0x2030], eax
mov edx, dword [ebp - 0x2058]
mov eax, dword [edx]
xor ecx, ecx
mov dword [ebp - 0x2078], eax
mov dword [ebp - 0x2074], ecx
mov eax, dword [ebp - 0x2078]
mov edx, dword [ebp - 0x2074]
mov cl, 0xc
call fcn.005b1bd0
mov dword [ebp - 0x2078], eax
mov dword [ebp - 0x2074], edx
mov edx, dword [ebp - 0x2034]
mov eax, dword [edx + 4]
mov dword [ebp - 0x2080], eax
mov ecx, dword [ebp - 0x2034]
mov edx, dword [ecx]
mov dword [ebp - 0x207c], edx
mov eax, dword [ebp - 0x2080]
shl eax, 8
xor ecx, ecx
add eax, dword [ebp - 0x2078]
mov edx, dword [ebp - 0x2074]
adc edx, ecx
mov ecx, dword [ebp - 0x207c]
shl ecx, 4
xor esi, esi
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x2034]
mov ecx, dword [ecx + 0xc]
xor esi, esi
add eax, ecx
adc edx, esi
mov dword [ebp - 0x2078], eax
mov dword [ebp - 0x2074], edx
push 0xa
lea edx, [ebp - 0x2028]
push edx
mov eax, dword [ebp - 0x2074]
push eax
mov ecx, dword [ebp - 0x2078]
push ecx
call fcn.005a7606
add esp, 0x10
lea edx, [ebp - 0x2028]
push edx
push 0x6fb2a8
mov eax, dword [ebp - 0x2030]
push eax
call fcn.005a5b80
add esp, 0xc
jmp 0x4adda8
push 0x6fb2b4
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005a5bc0
add esp, 8
mov dword [ebp - 0x2030], eax
push 0xa
lea edx, [ebp - 0x2028]
push edx
mov eax, dword [ebp - 0x2058]
mov ecx, dword [eax]
xor edx, edx
push edx
push ecx
call fcn.005a7606
add esp, 0x10
lea eax, [ebp - 0x2028]
push eax
push 0x6fb2bc
mov ecx, dword [ebp - 0x2030]
push ecx
call fcn.005a5b80
add esp, 0xc
push 0xa
lea edx, [ebp - 0x2028]
push edx
mov eax, dword [ebp - 0x2058]
mov ecx, dword [eax + 0x80]
push ecx
call fcn.005a751c
add esp, 0xc
lea edx, [ebp - 0x2028]
push edx
push 0x6fb2c8
mov eax, dword [ebp - 0x2030]
push eax
call fcn.005a5b80
add esp, 0xc
push str.NLDL
mov ecx, dword [ebp - 0x2030]
push ecx
call fcn.005a5bc0
add esp, 8
mov dword [ebp - 0x202c], eax
mov ecx, dword [ebp - 0x2058]
add ecx, 0x24
call fcn.00405490
push eax
push 0x1000
lea edx, [ebp - 0x2028]
push edx
call fcn.005a7087
add esp, 0xc
lea eax, [ebp - 0x2028]
push eax
mov ecx, dword [ebp - 0x20ac]
call fcn.004ae600
lea ecx, [ebp - 0x2028]
push ecx
push 0x6fb2d4
mov edx, dword [ebp - 0x202c]
push edx
call fcn.005a5b80
add esp, 0xc
mov ecx, dword [ebp - 0x2058]
add ecx, 8
call fcn.00405490
push eax
push 0x1000
lea eax, [ebp - 0x2028]
push eax
call fcn.005a7087
add esp, 0xc
lea ecx, [ebp - 0x2028]
push ecx
mov ecx, dword [ebp - 0x20ac]
call fcn.004ae600
lea edx, [ebp - 0x2028]
push edx
mov eax, dword [ebp - 0x202c]
push eax
call fcn.005a5a60
add esp, 8
push 0x6fb2d8
mov ecx, dword [ebp - 0x2030]
push ecx
call fcn.005a5bc0
add esp, 8
mov dword [ebp - 0x2064], eax
mov ecx, dword [ebp - 0x2058]
add ecx, 0x5c
call fcn.00405490
push eax
push 0x1000
lea edx, [ebp - 0x2028]
push edx
call fcn.005a7087
add esp, 0xc
lea eax, [ebp - 0x2028]
push eax
mov ecx, dword [ebp - 0x20ac]
call fcn.004ae600
lea ecx, [ebp - 0x2028]
push ecx
push 0x6fb2dc
mov edx, dword [ebp - 0x2064]
push edx
call fcn.005a5b80
add esp, 0xc
mov ecx, dword [ebp - 0x2058]
add ecx, 0x40
call fcn.00405490
push eax
push 0x1000
lea eax, [ebp - 0x2028]
push eax
call fcn.005a7087
add esp, 0xc
lea ecx, [ebp - 0x2028]
push ecx
mov ecx, dword [ebp - 0x20ac]
call fcn.004ae600
lea edx, [ebp - 0x2028]
push edx
mov eax, dword [ebp - 0x2064]
push eax
call fcn.005a5a60
add esp, 8
push 0x6fb2e0
mov ecx, dword [ebp - 0x2030]
push ecx
call fcn.005a5bc0
add esp, 8
mov dword [ebp - 0x2050], eax
push 0xa
lea edx, [ebp - 0x2028]
push edx
mov eax, dword [ebp - 0x2058]
mov ecx, dword [eax + 4]
push ecx
call fcn.005a751c
add esp, 0xc
lea edx, [ebp - 0x2028]
push edx
mov eax, dword [ebp - 0x2050]
push eax
call fcn.005a5a60
add esp, 8
push 0x6fb2e8
mov ecx, dword [ebp - 0x2030]
push ecx
call fcn.005a5bc0
add esp, 8
mov dword [ebp - 0x2060], eax
mov edx, dword [ebp - 0x2058]
movzx eax, word [edx + 0x7a]
test eax, eax
je 0x4adfd9
push 0x6fb2ec
push 0x1000
lea ecx, [ebp - 0x2028]
push ecx
call fcn.005a7087
add esp, 0xc
jmp 0x4adff2
push 0x6fb2f0
push 0x1000
lea edx, [ebp - 0x2028]
push edx
call fcn.005a7087
add esp, 0xc
lea eax, [ebp - 0x2028]
push eax
mov ecx, dword [ebp - 0x2060]
push ecx
call fcn.005a5a60
add esp, 8
push 0x6fb2f4
mov edx, dword [ebp - 0x2030]
push edx
call fcn.005a5bc0
add esp, 8
mov dword [ebp - 0x2048], eax
push 0xa
lea eax, [ebp - 0x2028]
push eax
mov ecx, dword [ebp - 0x2058]
movzx edx, word [ecx + 0x7e]
push edx
call fcn.005a751c
add esp, 0xc
lea eax, [ebp - 0x2028]
push eax
mov ecx, dword [ebp - 0x2048]
push ecx
call fcn.005a5a60
add esp, 8
push 0x6fb2f8
mov edx, dword [ebp - 0x2030]
push edx
call fcn.005a5bc0
add esp, 8
mov dword [ebp - 0x2038], eax
mov ecx, dword [ebp - 0x2058]
add ecx, 0x88
call fcn.00405490
push eax
push 0x1000
lea eax, [ebp - 0x2028]
push eax
call fcn.005a7087
add esp, 0xc
lea ecx, [ebp - 0x2028]
push ecx
mov ecx, dword [ebp - 0x20ac]
call fcn.004ae600
lea edx, [ebp - 0x2028]
push edx
mov eax, dword [ebp - 0x2038]
push eax
call fcn.005a5a60
add esp, 8
push 0x6fb2fc
mov ecx, dword [ebp - 0x2030]
push ecx
call fcn.005a5bc0
add esp, 8
mov dword [ebp - 0x2044], eax
mov ecx, dword [ebp - 0x2058]
add ecx, 0xa6
call fcn.00405490
push eax
push 0x1000
lea edx, [ebp - 0x2028]
push edx
call fcn.005a7087
add esp, 0xc
lea eax, [ebp - 0x2028]
push eax
mov ecx, dword [ebp - 0x20ac]
call fcn.004ae600
lea ecx, [ebp - 0x2028]
push ecx
mov edx, dword [ebp - 0x2044]
push edx
call fcn.005a5a60
add esp, 8
push 0x6fb304
mov eax, dword [ebp - 0x2030]
push eax
call fcn.005a5bc0
add esp, 8
mov dword [ebp - 0x204c], eax
push 0xa
lea ecx, [ebp - 0x2028]
push ecx
mov edx, dword [ebp - 0x2058]
movzx eax, word [edx + 0xc2]
push eax
call fcn.005a751c
add esp, 0xc
lea ecx, [ebp - 0x2028]
push ecx
mov edx, dword [ebp - 0x204c]
push edx
call fcn.005a5a60
add esp, 8
push 0x6fb30c
mov eax, dword [ebp - 0x2030]
push eax
call fcn.005a5bc0
add esp, 8
mov dword [ebp - 0x206c], eax
push 0xa
lea ecx, [ebp - 0x2028]
push ecx
mov edx, dword [ebp - 0x2058]
movzx eax, word [edx + 0xc4]
push eax
call fcn.005a751c
add esp, 0xc
lea ecx, [ebp - 0x2028]
push ecx
mov edx, dword [ebp - 0x206c]
push edx
call fcn.005a5a60
add esp, 8
push 0x6fb314
mov eax, dword [ebp - 0x2030]
push eax
call fcn.005a5bc0
add esp, 8
mov dword [ebp - 0x205c], eax
push 0xa
lea ecx, [ebp - 0x2028]
push ecx
mov edx, dword [ebp - 0x2058]
movzx eax, word [edx + 0xc6]
push eax
call fcn.005a751c
add esp, 0xc
lea ecx, [ebp - 0x2028]
push ecx
mov edx, dword [ebp - 0x205c]
push edx
call fcn.005a5a60
add esp, 8
push str.STATUS
mov eax, dword [ebp - 0x2030]
push eax
call fcn.005a5bc0
add esp, 8
mov dword [ebp - 0x2068], eax
push 0xa
lea ecx, [ebp - 0x2028]
push ecx
mov edx, dword [ebp - 0x2058]
mov eax, dword [edx + 0x84]
push eax
call fcn.005a751c
add esp, 0xc
lea ecx, [ebp - 0x2028]
push ecx
mov edx, dword [ebp - 0x2068]
push edx
call fcn.005a5a60
add esp, 8
push 0x6fb32c
mov eax, dword [ebp - 0x2030]
push eax
call fcn.005a5bc0
add esp, 8
mov dword [ebp - 0x2054], eax
push 0xa
lea ecx, [ebp - 0x2028]
push ecx
mov edx, dword [ebp - 0x2058]
movzx eax, word [edx + 0x7c]
push eax
call fcn.005a751c
add esp, 0xc
lea ecx, [ebp - 0x2028]
push ecx
mov edx, dword [ebp - 0x2054]
push edx
call fcn.005a5a60
add esp, 8
jmp 0x4adb86
mov eax, dword [ebp - 0x20ac]
mov ecx, dword [eax + 0x94]
call fcn.0046da00
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2084], 0
jmp 0x4ae2df
mov ecx, dword [ebp - 0x2084]
add ecx, 1
mov dword [ebp - 0x2084], ecx
mov edx, dword [ebp - 0x2084]
cmp edx, dword [ebp - 0x14]
jge 0x4ae329
mov eax, dword [ebp - 0x2084]
push eax
mov ecx, dword [ebp - 0x20ac]
mov ecx, dword [ecx + 0x94]
call fcn.0046d9e0
mov dword [ebp - 0x2088], eax
cmp dword [ebp - 0x2088], 0
je 0x4ae327
mov edx, dword [ebp - 0x2088]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20ac]
call fcn.004ae3c0
jmp 0x4ae2d0
mov dword [ebp - 0x18], 0
push 0x6fb334
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.005b1600
add esp, 0xc
cmp dword [ebp - 0x18], 0
jne 0x4ae34f
xor al, al
jmp 0x4ae3a7
mov byte [ebp - 8], 0xff
mov byte [ebp - 7], 0xfe
mov eax, dword [ebp - 0x18]
push eax
push 2
push 1
lea ecx, [ebp - 8]
push ecx
call fcn.005ab8a9
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
je 0x4ae378
xor al, al
jmp 0x4ae3a7
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.004ad8b0
add esp, 0xc
mov edx, dword [ebp - 0x20]
push edx
call fcn.005a6050
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
call fcn.005ab232
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.005a6f18
mov esp, ebp
pop ebp
ret 0xc