Function at 0x436350
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5adb3c
mov eax, dword fs:[0]
push eax
mov eax, 0x10fc
call fcn.00589140
mov eax, dword [0x6aae20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 0
push 0x3018
push 0
mov eax, dword [ebp + 8]
imul eax, eax, 0x3018
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax + 0xf88]
push edx
call fcn.00588eb0
add esp, 0xc
mov eax, dword [ebp + 8]
imul eax, eax, 0x3018
mov ecx, dword [ebp - 0x14]
mov dword [ecx + eax + 0x3f98], 0x100002
mov eax, dword [ebp + 8]
imul eax, eax, 0x1c
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx + eax + 0x774]
call fcn.00411070
mov edx, dword [ebp + 8]
imul edx, edx, 0x3018
mov ecx, dword [ebp - 0x14]
mov dword [ecx + edx + 0x1f90], eax
mov eax, dword [ebp + 8]
cmp dword [eax*4 + 0x623bb0], 0
je 0x4366f5
push 0x67eed6
lea ecx, [ebp - 0x34]
call fcn.00410e00
mov dword [ebp - 4], 0
push 0
push str.TORRENT
mov eax, dword [ebp + 8]
shl eax, 0xc
add eax, 0x601bb0
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x2a4
call fcn.00411070
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x623bb0]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.00438cd0
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x436554
push str.file:__
lea ecx, [ebp - 0x34]
call fcn.00411540
mov ecx, dword [ebp - 0x14]
add ecx, 0x2a4
call fcn.00411070
push eax
lea ecx, [ebp - 0x34]
call fcn.0040cc80
mov ecx, dword [ebp - 0x14]
add ecx, 0x2a4
call fcn.0040c0c0
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x2a4
call fcn.0040c0c0
sub eax, 1
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x2a4
call fcn.0040c100
mov byte [ebp - 4], 1
lea eax, [ebp - 0x54]
push eax
push 0x624118
call fcn.0040fb90
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4364d5
push 0x624118
lea ecx, [ebp - 0x34]
call fcn.0040cc80
mov eax, dword [ebp + 8]
shl eax, 0xc
add eax, 0x601bb0
push eax
lea ecx, [ebp - 0x34]
call fcn.0040cc80
lea ecx, [ebp - 0x34]
call fcn.0040c0c0
push eax
lea ecx, [ebp - 0x34]
call fcn.00411070
push eax
mov eax, dword [ebp + 8]
imul eax, eax, 0x3018
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax + 0xf90]
push edx
call fcn.0058a2f0
add esp, 0xc
mov eax, dword [ebp + 8]
imul eax, eax, 0x3018
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + eax + 0x3f98]
or edx, 0x1000000
mov eax, dword [ebp + 8]
imul eax, eax, 0x3018
mov ecx, dword [ebp - 0x14]
mov dword [ecx + eax + 0x3f98], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.004116c0
jmp 0x4366e6
cmp dword [ebp - 0x38], 1
jne 0x4366b0
mov byte [ebp - 0x1054], 0
push 0xfff
push 0
lea eax, [ebp - 0x1053]
push eax
call fcn.00588eb0
add esp, 0xc
push 0x1000
lea eax, [ebp - 0x1054]
push eax
push str._temp_
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [ebp - 0x1054]
push eax
lea ecx, [ebp - 0x1070]
call fcn.00410e00
mov byte [ebp - 4], 2
push str.file:__
lea ecx, [ebp - 0x34]
call fcn.00411540
lea ecx, [ebp - 0x1070]
call fcn.00411070
push eax
lea ecx, [ebp - 0x34]
call fcn.0040cc80
lea ecx, [ebp - 0x1070]
call fcn.0040c0c0
push eax
lea ecx, [ebp - 0x1070]
call fcn.0040c0c0
sub eax, 1
push eax
lea eax, [ebp - 0x108c]
push eax
lea ecx, [ebp - 0x1070]
call fcn.0040c100
mov byte [ebp - 4], 3
lea eax, [ebp - 0x108c]
push eax
push 0x624118
call fcn.0040fb90
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x436622
push 0x624118
lea ecx, [ebp - 0x34]
call fcn.0040cc80
mov eax, dword [ebp + 8]
shl eax, 0xc
add eax, 0x601bb0
push eax
lea ecx, [ebp - 0x34]
call fcn.0040cc80
lea ecx, [ebp - 0x34]
call fcn.0040c0c0
push eax
lea ecx, [ebp - 0x34]
call fcn.00411070
push eax
mov eax, dword [ebp + 8]
imul eax, eax, 0x3018
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax + 0xf90]
push edx
call fcn.0058a2f0
add esp, 0xc
mov eax, dword [ebp + 8]
imul eax, eax, 0x3018
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + eax + 0x3f98]
or edx, 0x1000000
mov eax, dword [ebp + 8]
imul eax, eax, 0x3018
mov ecx, dword [ebp - 0x14]
mov dword [ecx + eax + 0x3f98], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x108c]
call fcn.004116c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1070]
call fcn.004116c0
jmp 0x4366e6
cmp dword [0x6b144c], 0
je 0x4366d5
push 0x22
push 0x22
push str.Torent
mov eax, dword [0x6b144c]
mov ecx, dword [eax]
mov edx, dword [0x6b144c]
push edx
mov eax, dword [ecx + 8]
call eax
push 0
push str.SSconf
push str.11400190
call fcn.005079e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004116c0
mov eax, dword [ebp - 0x14]
add eax, 0x2dc
push eax
lea ecx, [ebp - 0x10a8]
call fcn.00410e40
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
add ecx, 0x2dc
call fcn.0040c0c0
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x2dc
call fcn.0040c0c0
sub eax, 1
push eax
lea eax, [ebp - 0x10c4]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x2dc
call fcn.0040c100
mov byte [ebp - 4], 5
lea eax, [ebp - 0x10c4]
push eax
push 0x624118
call fcn.0040fb90
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x436775
push 0x624118
lea ecx, [ebp - 0x10a8]
call fcn.0040cc80
mov eax, dword [ebp + 8]
imul eax, eax, 0x1c
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx + eax + 0xb2c]
call fcn.00411070
push eax
lea ecx, [ebp - 0x10a8]
call fcn.0040cc80
push 0x67eed6
call fcn.00588520
add esp, 4
test eax, eax
je 0x436803
push 0
lea ecx, [ebp - 0x10a8]
call fcn.00411070
push eax
call fcn.0058a900
add esp, 8
cmp eax, 0xffffffff
jne 0x436803
mov ecx, dword [ebp - 0x14]
add ecx, 0x368
call fcn.00411070
push eax
mov eax, dword [ebp + 8]
imul eax, eax, 0x1c
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx + eax + 0xb2c]
call fcn.00411070
push eax
call fcn.005892a0
add esp, 8
test eax, eax
jne 0x436803
push 0x67eed6
lea ecx, [ebp - 0x10a8]
call fcn.0040cc80
lea ecx, [ebp - 0x10a8]
call fcn.0040c0c0
push eax
lea ecx, [ebp - 0x10a8]
call fcn.00411070
push eax
mov eax, dword [ebp + 8]
imul eax, eax, 0x3018
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax + 0x1f94]
push edx
call fcn.0058a2f0
add esp, 0xc
mov eax, dword [ebp + 8]
imul eax, eax, 0x1c
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx + eax + 0x3bc]
call fcn.0040c0c0
push eax
mov edx, dword [ebp + 8]
imul edx, edx, 0x1c
mov eax, dword [ebp - 0x14]
lea ecx, [eax + edx + 0x3bc]
call fcn.00411070
push eax
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x3018
mov edx, dword [ebp - 0x14]
lea eax, [edx + ecx + 0x2f94]
push eax
call fcn.0058a2f0
add esp, 0xc
mov eax, dword [ebp + 8]
imul eax, eax, 0x3018
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax + 0xf88]
push edx
call fcn.00509130
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4368c1
mov eax, dword [ebp + 8]
imul eax, eax, 0x3018
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + eax + 0x3f9c]
mov dword [edx + ecx*4 + 0xf00], eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x150], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x154], 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x1bc]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00437850
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1108], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10c4]
call fcn.004116c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10a8]
call fcn.004116c0
mov eax, dword [ebp - 0x1108]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005884bd
mov esp, ebp
pop ebp
ret 4