Function at 0x435310
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad9dc
mov eax, dword fs:[0]
push eax
mov eax, 0x30fc
call fcn.005890a0
mov eax, dword [0x632e20]
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 eax, dword [ebp + 8]
imul eax, eax, 0x1c
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx + eax + 0x3b4]
call fcn.004110d0
push eax
push 0x606d46
call fcn.00589200
add esp, 8
test eax, eax
jne 0x435384
push 0
push 0x5c9d7c
push 0x5caa78
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.00506b30
mov eax, dword [ebp + 8]
imul eax, eax, 0x1c
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx + eax + 0x344]
call fcn.0040c0f0
push eax
mov edx, dword [ebp + 8]
imul edx, edx, 0x1c
mov eax, dword [ebp - 0x14]
lea ecx, [eax + edx + 0x344]
call fcn.004110d0
push eax
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x3018
mov edx, dword [ebp - 0x14]
lea eax, [edx + ecx + 0x24cc]
push eax
call fcn.0058a250
add esp, 0xc
mov eax, dword [ebp + 8]
imul eax, eax, 0x1c
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx + eax + 0x3b4]
call fcn.004110d0
mov edx, dword [ebp + 8]
imul edx, edx, 0x3018
mov ecx, dword [ebp - 0x14]
mov dword [ecx + edx + 0x14c8], eax
mov eax, dword [ebp + 8]
imul eax, eax, 0x3018
mov ecx, dword [ebp - 0x14]
mov dword [ecx + eax + 0x34d0], 0x100002
mov eax, dword [ebp + 8]
cmp dword [eax*4 + 0x5c9ac0], 0
je 0x435712
push 0x606d46
lea ecx, [ebp - 0x30]
call fcn.00410e60
mov dword [ebp - 4], 0
push 0
push str.TORRENT
mov eax, dword [ebp + 8]
shl eax, 0xc
add eax, 0x5c5ac0
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x22c
call fcn.004110d0
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x5c9ac0]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.00438c50
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x435571
push str.file:__
lea ecx, [ebp - 0x30]
call fcn.004115a0
mov ecx, dword [ebp - 0x14]
add ecx, 0x22c
call fcn.004110d0
push eax
lea ecx, [ebp - 0x30]
call fcn.0040c050
mov ecx, dword [ebp - 0x14]
add ecx, 0x22c
call fcn.0040c0f0
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x22c
call fcn.0040c0f0
sub eax, 1
push eax
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x22c
call fcn.0040c130
mov byte [ebp - 4], 1
lea eax, [ebp - 0x50]
push eax
push 0x5c9f9c
call fcn.0040fbc0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4354f2
push 0x5c9f9c
lea ecx, [ebp - 0x30]
call fcn.0040c050
mov eax, dword [ebp + 8]
shl eax, 0xc
add eax, 0x5c5ac0
push eax
lea ecx, [ebp - 0x30]
call fcn.0040c050
lea ecx, [ebp - 0x30]
call fcn.0040c0f0
push eax
lea ecx, [ebp - 0x30]
call fcn.004110d0
push eax
mov eax, dword [ebp + 8]
imul eax, eax, 0x3018
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax + 0x4c8]
push edx
call fcn.0058a250
add esp, 0xc
mov eax, dword [ebp + 8]
imul eax, eax, 0x3018
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + eax + 0x34d0]
or edx, 0x1000000
mov eax, dword [ebp + 8]
imul eax, eax, 0x3018
mov ecx, dword [ebp - 0x14]
mov dword [ecx + eax + 0x34d0], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00411720
jmp 0x435703
cmp dword [ebp - 0x34], 1
jne 0x4356cd
mov byte [ebp - 0x1050], 0
push 0xfff
push 0
lea eax, [ebp - 0x104f]
push eax
call fcn.00588e10
add esp, 0xc
push 0x1000
lea eax, [ebp - 0x1050]
push eax
push str._temp_
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [ebp - 0x1050]
push eax
lea ecx, [ebp - 0x106c]
call fcn.00410e60
mov byte [ebp - 4], 2
push str.file:__
lea ecx, [ebp - 0x30]
call fcn.004115a0
lea ecx, [ebp - 0x106c]
call fcn.004110d0
push eax
lea ecx, [ebp - 0x30]
call fcn.0040c050
lea ecx, [ebp - 0x106c]
call fcn.0040c0f0
push eax
lea ecx, [ebp - 0x106c]
call fcn.0040c0f0
sub eax, 1
push eax
lea eax, [ebp - 0x1088]
push eax
lea ecx, [ebp - 0x106c]
call fcn.0040c130
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1088]
push eax
push 0x5c9f9c
call fcn.0040fbc0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x43563f
push 0x5c9f9c
lea ecx, [ebp - 0x30]
call fcn.0040c050
mov eax, dword [ebp + 8]
shl eax, 0xc
add eax, 0x5c5ac0
push eax
lea ecx, [ebp - 0x30]
call fcn.0040c050
lea ecx, [ebp - 0x30]
call fcn.0040c0f0
push eax
lea ecx, [ebp - 0x30]
call fcn.004110d0
push eax
mov eax, dword [ebp + 8]
imul eax, eax, 0x3018
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax + 0x4c8]
push edx
call fcn.0058a250
add esp, 0xc
mov eax, dword [ebp + 8]
imul eax, eax, 0x3018
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + eax + 0x34d0]
or edx, 0x1000000
mov eax, dword [ebp + 8]
imul eax, eax, 0x3018
mov ecx, dword [ebp - 0x14]
mov dword [ecx + eax + 0x34d0], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1088]
call fcn.00411720
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x106c]
call fcn.00411720
jmp 0x435703
cmp dword [0x63926c], 0
je 0x4356f2
push 0x22
push 0x22
push str.Torent
mov eax, dword [0x63926c]
mov ecx, dword [eax]
mov edx, dword [0x63926c]
push edx
mov eax, dword [ecx + 8]
call eax
push 0
push str.SSconf
push str.11400101
call fcn.00507520
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00411720
mov eax, dword [ebp - 0x14]
add eax, 0x264
push eax
lea ecx, [ebp - 0x10a4]
call fcn.00410ea0
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
add ecx, 0x264
call fcn.0040c0f0
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x264
call fcn.0040c0f0
sub eax, 1
push eax
lea eax, [ebp - 0x10c0]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x264
call fcn.0040c130
mov byte [ebp - 4], 5
lea eax, [ebp - 0x10c0]
push eax
push 0x5c9f9c
call fcn.0040fbc0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x435792
push 0x5c9f9c
lea ecx, [ebp - 0x10a4]
call fcn.0040c050
mov eax, dword [ebp + 8]
imul eax, eax, 0x1c
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx + eax + 0x424]
call fcn.004110d0
push eax
lea ecx, [ebp - 0x10a4]
call fcn.0040c050
push 0x606d46
call fcn.00588480
add esp, 4
test eax, eax
je 0x435820
push 0
lea ecx, [ebp - 0x10a4]
call fcn.004110d0
push eax
call fcn.0058a860
add esp, 8
cmp eax, 0xffffffff
jne 0x435820
mov ecx, dword [ebp - 0x14]
add ecx, 0x2f0
call fcn.004110d0
push eax
mov eax, dword [ebp + 8]
imul eax, eax, 0x1c
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx + eax + 0x424]
call fcn.004110d0
push eax
call fcn.00589200
add esp, 8
test eax, eax
jne 0x435820
push 0x606d46
lea ecx, [ebp - 0x10a4]
call fcn.0040c050
lea ecx, [ebp - 0x10a4]
call fcn.0040c0f0
push eax
lea ecx, [ebp - 0x10a4]
call fcn.004110d0
push eax
mov eax, dword [ebp + 8]
imul eax, eax, 0x3018
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax + 0x14cc]
push edx
call fcn.0058a250
add esp, 0xc
movzx eax, byte [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x3018
mov edx, dword [ebp - 0x14]
lea eax, [edx + ecx + 0x4c0]
push eax
call fcn.00508d70
mov dword [ebp - 0x10c4], eax
cmp dword [ebp - 0x10c4], 0
je 0x435910
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x435894
mov eax, dword [ebp - 0x14]
mov byte [eax + 8], 1
cmp dword [0x63926c], 0
je 0x4358b9
push 0x22
push 0x22
push str.Reload_
mov eax, dword [0x63926c]
mov ecx, dword [eax]
mov edx, dword [0x63926c]
push edx
mov eax, dword [ecx + 8]
call eax
mov byte [ebp - 0x20c4], 0
push 0xfff
push 0
lea eax, [ebp - 0x20c3]
push eax
call fcn.00588e10
add esp, 0xc
mov eax, dword [ebp - 0x10c4]
push eax
push str.ErrorCode_:__d
lea ecx, [ebp - 0x20c4]
push ecx
call fcn.00588fcd
add esp, 0xc
push 0
push 0x5c9d7c
lea eax, [ebp - 0x20c4]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x14]
push edx
call fcn.00506b30
jmp 0x4359d5
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x43591f
mov eax, dword [ebp - 0x14]
mov byte [eax + 8], 0
cmp dword [0x63926c], 0
je 0x435944
push 0x22
push 0x22
push str.Reload
mov eax, dword [0x63926c]
mov ecx, dword [eax]
mov edx, dword [0x63926c]
push edx
mov eax, dword [ecx + 8]
call eax
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 + 0x34d4]
mov dword [edx + ecx*4 + 0x4b0], eax
mov byte [ebp - 0x30c4], 0
push 0xfff
push 0
lea eax, [ebp - 0x30c3]
push eax
call fcn.00588e10
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push str.StartingShotTask
push str._s_d
lea ecx, [ebp - 0x30c4]
push ecx
call fcn.00588fcd
add esp, 0x10
mov ecx, dword [ebp - 0x14]
add ecx, 0x1f4
call fcn.004110d0
push eax
mov eax, dword [ebp + 8]
imul eax, eax, 0x1c
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx + eax + 0x424]
call fcn.004110d0
push eax
lea edx, [ebp - 0x30c4]
push edx
push str.StartingShotTask
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [ebp - 0x10c4]
mov dword [ebp - 0x3108], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10c0]
call fcn.00411720
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10a4]
call fcn.00411720
mov eax, dword [ebp - 0x3108]
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.0058841d
mov esp, ebp
pop ebp
ret 8