Function at 0x10008850
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004cd3e
mov eax, dword fs:[0]
push eax
sub esp, 0x8a4
mov eax, dword [0x1005f080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x804], 0
movups xmmword [ebp - 0x814], xmm0
mov dword [ebp - 0x800], 7
mov word [ebp - 0x814], ax
push ecx
push str.serverip
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.1000b890
push ecx
lea ecx, [ebp + 8]
cmp eax, 0xffffffff
je 0x10008c46
push 0x10057e98
call fcn.1000b890
cmp eax, 0xffffffff
je 0x10008b42
lea edx, [eax + 1]
mov dword [ebp - 0x89c], 0
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x898], 0
movups xmmword [ebp - 0x8ac], xmm0
cmp eax, edx
jb 0x100090a6
sub eax, edx
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp + 0x1c], 7
lea eax, [ebp + 8]
cmova eax, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x8ac]
lea eax, [eax + edx*2]
push eax
call fcn.10007220
mov ecx, dword [ebp - 0x800]
cmp ecx, 7
jbe 0x10008970
mov edx, dword [ebp - 0x814]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10008966
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100090a1
push ecx
push edx
call fcn.10028555
add esp, 8
movups xmm0, xmmword [ebp - 0x8ac]
mov edx, dword [0x1005fbc0]
movups xmmword [ebp - 0x814], xmm0
movq xmm0, qword [ebp - 0x89c]
movq qword [ebp - 0x804], xmm0
cmp edx, 0x1f4
jb 0x100089c4
cmp dword [0x1005fbc4], 7
mov eax, 0x1005fbb0
mov dword [0x1005fbc0], 0x1f4
cmova eax, dword [0x1005fbb0]
xor ecx, ecx
mov word [eax + 0x3e8], cx
jmp 0x10008a2a
mov edi, dword [0x1005fbc4]
mov ecx, 0x1f4
mov eax, edi
sub ecx, edx
sub eax, edx
cmp ecx, eax
ja 0x10008a0f
cmp edi, 7
mov dword [0x1005fbc0], 0x1f4
mov esi, 0x1005fbb0
cmova esi, dword [0x1005fbb0]
lea edi, [esi + edx*2]
test ecx, ecx
je 0x10008a04
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [esi + 0x3e8], ax
jmp 0x10008a2a
push 0
push ecx
mov byte [ebp - 0x894], 0
push dword [ebp - 0x894]
push ecx
mov ecx, 0x1005fbb0
call fcn.1000c8a0
push 0x1f4
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.1002a4b0
add esp, 0xc
lea edx, [ebp - 0x814]
lea ecx, [ebp - 0x890]
call fcn.100018c0
mov byte [ebp - 4], 2
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
sub esp, 0x18
lea eax, [ebp - 0x878]
mov ecx, 0x1bb
mov dword [ebp - 0x894], esp
movzx esi, cx
mov ecx, esp
push eax
call fcn.10004d20
sub esp, 0x18
mov byte [ebp - 4], 3
lea eax, [ebp - 0x848]
mov ecx, esp
push eax
call fcn.10004d20
lea edx, [ebp - 0x208]
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.1000de10
add esp, 0x34
test eax, eax
je 0x10008ab5
push 0x1388
call edi
jmp 0x10008a5b
push 0x3e8
lea eax, [ebp - 0x5f0]
push 0
push eax
call fcn.1002a4b0
push 0x1f4
lea eax, [ebp - 0x208]
push eax
push 0x1f4
lea eax, [ebp - 0x5f0]
push eax
lea eax, [ebp - 0x818]
push eax
call fcn.1002e540
add esp, 0x20
test eax, eax
je 0x10008bb4
lea ecx, [ebp - 0x890]
call fcn.100020d0
mov ecx, dword [ebp - 0x800]
cmp ecx, 7
jbe 0x10008b42
mov edx, dword [ebp - 0x814]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10008b38
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100090a1
push ecx
push edx
call fcn.10028555
add esp, 8
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov word [ebp - 0x814], ax
mov dword [ebp - 0x800], 7
mov dword [ebp - 0x804], eax
cmp ecx, 7
jbe 0x10008b95
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10008b8b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100090a1
push ecx
push edx
call fcn.10028555
add esp, 8
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10028524
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x5f0]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008bc0
mov eax, dword [0x1005fbc4]
sub ecx, edx
sar ecx, 1
cmp ecx, eax
ja 0x10008c17
cmp eax, 7
mov dword [0x1005fbc0], ecx
lea esi, [ecx + ecx]
mov edi, 0x1005fbb0
cmova edi, dword [0x1005fbb0]
lea eax, [ebp - 0x5f0]
push esi
push eax
push edi
call fcn.10029f20
add esp, 0xc
lea ecx, [ebp - 0x890]
xor eax, eax
mov word [edi + esi], ax
call fcn.100020d0
jmp 0x10008fb6
lea eax, [ebp - 0x5f0]
mov byte [ebp - 0x894], 0
push eax
push dword [ebp - 0x894]
push ecx
mov ecx, 0x1005fbb0
call fcn.10005670
lea ecx, [ebp - 0x890]
call fcn.100020d0
jmp 0x10008fb6
push 0x10057e9c
call fcn.1000b890
push ecx
lea ecx, [ebp + 8]
cmp eax, 0xffffffff
je 0x10008d57
push 0x10057e98
call fcn.1000b890
cmp eax, 0xffffffff
je 0x10008b42
lea edx, [eax + 1]
mov dword [ebp - 0x89c], 0
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x898], 0
movups xmmword [ebp - 0x8ac], xmm0
cmp eax, edx
jb 0x100090a6
sub eax, edx
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp + 0x1c], 7
lea eax, [ebp + 8]
cmova eax, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x8ac]
lea eax, [eax + edx*2]
push eax
call fcn.10007220
mov ecx, dword [ebp - 0x800]
cmp ecx, 7
jbe 0x10008cff
mov edx, dword [ebp - 0x814]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10008cf5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100090a1
push ecx
push edx
call fcn.10028555
add esp, 8
movups xmm1, xmmword [ebp - 0x8ac]
lea ecx, [ebp - 0x814]
movq xmm0, qword [ebp - 0x89c]
movd eax, xmm1
movq qword [ebp - 0x804], xmm0
cmp dword [ebp - 0x800], 7
push 0x104
cmova ecx, eax
lea eax, [ebp - 0x7fc]
push eax
push ecx
movups xmmword [ebp - 0x814], xmm1
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [ebp - 0x800]
test eax, eax
jne 0x10008fbc
jmp 0x10008b08
push str.only_upload_location
call fcn.1000b890
push ecx
lea ecx, [ebp + 8]
cmp eax, 0xffffffff
je 0x10008e68
push 0x10057e98
call fcn.1000b890
cmp eax, 0xffffffff
je 0x10008b42
lea edx, [eax + 1]
mov dword [ebp - 0x89c], 0
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x898], 0
movups xmmword [ebp - 0x8ac], xmm0
cmp eax, edx
jb 0x100090a6
sub eax, edx
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp + 0x1c], 7
lea eax, [ebp + 8]
cmova eax, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x8ac]
lea eax, [eax + edx*2]
push eax
call fcn.10007220
mov ecx, dword [ebp - 0x800]
cmp ecx, 7
jbe 0x10008e10
mov edx, dword [ebp - 0x814]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10008e06
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100090a1
push ecx
push edx
call fcn.10028555
add esp, 8
movups xmm1, xmmword [ebp - 0x8ac]
lea ecx, [ebp - 0x814]
movq xmm0, qword [ebp - 0x89c]
movd eax, xmm1
movq qword [ebp - 0x804], xmm0
cmp dword [ebp - 0x800], 7
push 0x104
cmova ecx, eax
lea eax, [ebp - 0x7fc]
push eax
push ecx
movups xmmword [ebp - 0x814], xmm1
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [ebp - 0x800]
test eax, eax
jne 0x10008fbc
jmp 0x10008b08
push str.sleep
call fcn.1000b890
cmp eax, 0xffffffff
je 0x1000904c
push ecx
push 0x10057e98
lea ecx, [ebp + 8]
call fcn.1000b890
cmp eax, 0xffffffff
je 0x10008b42
lea edx, [eax + 1]
mov dword [ebp - 0x89c], 0
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x898], 0
movups xmmword [ebp - 0x8ac], xmm0
cmp eax, edx
jb 0x100090a6
sub eax, edx
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp + 0x1c], 7
lea eax, [ebp + 8]
cmova eax, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x8ac]
lea eax, [eax + edx*2]
push eax
call fcn.10007220
mov ecx, dword [ebp - 0x800]
cmp ecx, 7
jbe 0x10008f21
mov edx, dword [ebp - 0x814]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10008f17
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100090a1
push ecx
push edx
call fcn.10028555
add esp, 8
movups xmm0, xmmword [ebp - 0x8ac]
movups xmmword [ebp - 0x814], xmm0
movq xmm0, qword [ebp - 0x89c]
movq qword [ebp - 0x804], xmm0
mov byte [ebp - 4], 4
call fcn.1002e285
cmp dword [ebp - 0x800], 7
lea esi, [ebp - 0x814]
mov edi, eax
lea eax, [ebp - 0x894]
cmova esi, dword [ebp - 0x814]
push 0xa
push eax
push esi
mov dword [edi], 0
call fcn.1002e105
add esp, 0xc
cmp esi, dword [ebp - 0x894]
je 0x100090ab
cmp dword [edi], 0x22
je 0x100090b5
jmp 0x10008fab
imul eax, eax, 0x3e8
mov dword [0x1006247c], eax
mov ecx, dword [ebp - 0x800]
cmp ecx, 7
jbe 0x10008ff6
mov edx, dword [ebp - 0x814]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10008fec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100090a1
push ecx
push edx
call fcn.10028555
add esp, 8
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov word [ebp - 0x814], ax
mov dword [ebp - 0x800], 7
mov dword [ebp - 0x804], eax
cmp ecx, 7
jbe 0x10009045
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000903b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100090a1
push ecx
push edx
call fcn.10028555
add esp, 8
xor eax, eax
jmp 0x10008b98
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x804], 0
mov dword [ebp - 0x800], 7
mov word [ebp - 0x814], ax
cmp ecx, 7
jbe 0x10008b95
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10008b8b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10008b8b
call fcn.1002d65f
call fcn.10001140
push str.invalid_stoi_argument
call fcn.1000f89a
push str.stoi_argument_out_of_range
call fcn.1000f8da
int3