Function at 0x10009160
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004cfce
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.1000c330
push ecx
lea ecx, [ebp + 8]
cmp eax, 0xffffffff
je 0x10009556
push 0x10057d8c
call fcn.1000c330
cmp eax, 0xffffffff
je 0x10009452
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 0x10009bce
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.10007b00
mov ecx, dword [ebp - 0x800]
cmp ecx, 7
jbe 0x10009280
mov edx, dword [ebp - 0x814]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10009276
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009bc9
push ecx
push edx
call fcn.100292bf
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 0x100092d4
cmp dword [0x1005fbc4], 7
mov eax, 0x1005fbb0
mov dword [0x1005fbc0], 0x1f4
cmova eax, dword [0x1005fbb0]
xor ecx, ecx
mov word [eax + 0x3e8], cx
jmp 0x1000933a
mov edi, dword [0x1005fbc4]
mov ecx, 0x1f4
mov eax, edi
sub ecx, edx
sub eax, edx
cmp ecx, eax
ja 0x1000931f
cmp edi, 7
mov dword [0x1005fbc0], 0x1f4
mov esi, 0x1005fbb0
cmova esi, dword [0x1005fbb0]
lea edi, [esi + edx*2]
test ecx, ecx
je 0x10009314
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 0x1000933a
push 0
push ecx
mov byte [ebp - 0x894], 0
push dword [ebp - 0x894]
push ecx
mov ecx, 0x1005fbb0
call fcn.1000d340
push 0x1f4
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.1002b0c0
add esp, 0xc
lea edx, [ebp - 0x814]
lea ecx, [ebp - 0x890]
call fcn.10002090
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.10005590
sub esp, 0x18
mov byte [ebp - 4], 3
lea eax, [ebp - 0x848]
mov ecx, esp
push eax
call fcn.10005590
lea edx, [ebp - 0x414]
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.1000e8e0
add esp, 0x34
test eax, eax
je 0x100093c5
push 0x1388
call edi
jmp 0x1000936b
push 0x3e8
lea eax, [ebp - 0x7fc]
push 0
push eax
call fcn.1002b0c0
push 0x1f4
lea eax, [ebp - 0x414]
push eax
push 0x1f4
lea eax, [ebp - 0x7fc]
push eax
lea eax, [ebp - 0x818]
push eax
call fcn.1002f07e
add esp, 0x20
test eax, eax
je 0x100094c4
lea ecx, [ebp - 0x890]
call fcn.100028a0
mov ecx, dword [ebp - 0x800]
cmp ecx, 7
jbe 0x10009452
mov edx, dword [ebp - 0x814]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10009448
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009bc9
push ecx
push edx
call fcn.100292bf
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 0x100094a5
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000949b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009bc9
push ecx
push edx
call fcn.100292bf
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.1002928e
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x7fc]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100094d0
mov eax, dword [0x1005fbc4]
sub ecx, edx
sar ecx, 1
cmp ecx, eax
ja 0x10009527
cmp eax, 7
mov dword [0x1005fbc0], ecx
lea esi, [ecx + ecx]
mov edi, 0x1005fbb0
cmova edi, dword [0x1005fbb0]
lea eax, [ebp - 0x7fc]
push esi
push eax
push edi
call fcn.1002ab30
add esp, 0xc
lea ecx, [ebp - 0x890]
xor eax, eax
mov word [esi + edi], ax
call fcn.100028a0
jmp 0x10009ade
lea eax, [ebp - 0x7fc]
mov byte [ebp - 0x894], 0
push eax
push dword [ebp - 0x894]
push ecx
mov ecx, 0x1005fbb0
call fcn.10005f20
lea ecx, [ebp - 0x890]
call fcn.100028a0
jmp 0x10009ade
push 0x10057d90
call fcn.1000c330
push ecx
lea ecx, [ebp + 8]
cmp eax, 0xffffffff
je 0x10009771
push 0x10057d8c
call fcn.1000c330
cmp eax, 0xffffffff
je 0x10009452
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 0x10009bce
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.10007b00
mov ecx, dword [ebp - 0x800]
cmp ecx, 7
jbe 0x1000960f
mov edx, dword [ebp - 0x814]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10009605
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009bc9
push ecx
push edx
call fcn.100292bf
add esp, 8
movups xmm0, xmmword [ebp - 0x8ac]
mov edx, dword [0x1005fb48]
movups xmmword [ebp - 0x814], xmm0
movq xmm0, qword [ebp - 0x89c]
movq qword [ebp - 0x804], xmm0
cmp edx, 0x105
jb 0x10009663
cmp dword [0x1005fb4c], 7
mov eax, 0x1005fb38
mov dword [0x1005fb48], 0x105
cmova eax, dword [0x1005fb38]
xor ecx, ecx
mov word [eax + 0x20a], cx
jmp 0x100096c9
mov edi, dword [0x1005fb4c]
mov ecx, 0x105
mov eax, edi
sub ecx, edx
sub eax, edx
cmp ecx, eax
ja 0x100096ae
cmp edi, 7
mov dword [0x1005fb48], 0x105
mov esi, 0x1005fb38
cmova esi, dword [0x1005fb38]
lea edi, [esi + edx*2]
test ecx, ecx
je 0x100096a3
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 + 0x20a], ax
jmp 0x100096c9
push 0
push ecx
mov byte [ebp - 0x894], 0
push dword [ebp - 0x894]
push ecx
mov ecx, 0x1005fb38
call fcn.1000d340
cmp dword [ebp - 0x800], 7
lea ecx, [ebp - 0x220]
push 0x104
lea eax, [ebp - 0x814]
cmova eax, dword [ebp - 0x814]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x10009412
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10009701
mov eax, dword [0x1005fb4c]
sub ecx, edx
sar ecx, 1
cmp ecx, eax
ja 0x1000974d
cmp eax, 7
mov dword [0x1005fb48], ecx
lea esi, [ecx + ecx]
mov edi, 0x1005fb38
cmova edi, dword [0x1005fb38]
lea eax, [ebp - 0x220]
push esi
push eax
push edi
call fcn.1002ab30
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
jmp 0x10009ade
lea eax, [ebp - 0x220]
mov byte [ebp - 0x894], 0
push eax
push dword [ebp - 0x894]
push ecx
mov ecx, 0x1005fb38
call fcn.10005f20
jmp 0x10009ade
push str.only_upload_location
call fcn.1000c330
push ecx
lea ecx, [ebp + 8]
cmp eax, 0xffffffff
je 0x10009990
push 0x10057d8c
call fcn.1000c330
cmp eax, 0xffffffff
je 0x10009452
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 0x10009bce
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.10007b00
mov ecx, dword [ebp - 0x800]
cmp ecx, 7
jbe 0x1000982a
mov edx, dword [ebp - 0x814]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10009820
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009bc9
push ecx
push edx
call fcn.100292bf
add esp, 8
movups xmm0, xmmword [ebp - 0x8ac]
mov edx, dword [0x1005fb60]
movups xmmword [ebp - 0x814], xmm0
movq xmm0, qword [ebp - 0x89c]
movq qword [ebp - 0x804], xmm0
cmp edx, 0x105
jb 0x1000987e
cmp dword [0x1005fb64], 7
mov eax, 0x1005fb50
mov dword [0x1005fb60], 0x105
cmova eax, dword [0x1005fb50]
xor ecx, ecx
mov word [eax + 0x20a], cx
jmp 0x100098e4
mov edi, dword [0x1005fb64]
mov ecx, 0x105
mov eax, edi
sub ecx, edx
sub eax, edx
cmp ecx, eax
ja 0x100098c9
cmp edi, 7
mov dword [0x1005fb60], 0x105
mov esi, 0x1005fb50
cmova esi, dword [0x1005fb50]
lea edi, [esi + edx*2]
test ecx, ecx
je 0x100098be
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 + 0x20a], ax
jmp 0x100098e4
push 0
push ecx
mov byte [ebp - 0x894], 0
push dword [ebp - 0x894]
push ecx
mov ecx, 0x1005fb50
call fcn.1000d340
cmp dword [ebp - 0x800], 7
lea ecx, [ebp - 0x220]
push 0x104
lea eax, [ebp - 0x814]
cmova eax, dword [ebp - 0x814]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x10009412
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10009920
mov eax, dword [0x1005fb64]
sub ecx, edx
sar ecx, 1
cmp ecx, eax
ja 0x1000996c
cmp eax, 7
mov dword [0x1005fb60], ecx
lea esi, [ecx + ecx]
mov edi, 0x1005fb50
cmova edi, dword [0x1005fb50]
lea eax, [ebp - 0x220]
push esi
push eax
push edi
call fcn.1002ab30
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x10009ade
lea eax, [ebp - 0x220]
mov byte [ebp - 0x894], 0
push eax
push dword [ebp - 0x894]
push ecx
mov ecx, 0x1005fb50
call fcn.10005f20
jmp 0x10009ade
push str.sleep
call fcn.1000c330
cmp eax, 0xffffffff
je 0x10009b74
push ecx
push 0x10057d8c
lea ecx, [ebp + 8]
call fcn.1000c330
cmp eax, 0xffffffff
je 0x10009452
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 0x10009bce
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.10007b00
mov ecx, dword [ebp - 0x800]
cmp ecx, 7
jbe 0x10009a49
mov edx, dword [ebp - 0x814]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10009a3f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009bc9
push ecx
push edx
call fcn.100292bf
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.1002edc8
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.1002ece5
add esp, 0xc
cmp esi, dword [ebp - 0x894]
je 0x10009bd3
cmp dword [edi], 0x22
je 0x10009bdd
jmp 0x10009ad3
imul eax, eax, 0x3e8
mov dword [0x100624dc], eax
mov ecx, dword [ebp - 0x800]
cmp ecx, 7
jbe 0x10009b1e
mov edx, dword [ebp - 0x814]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10009b14
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009bc9
push ecx
push edx
call fcn.100292bf
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 0x10009b6d
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10009b63
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009bc9
push ecx
push edx
call fcn.100292bf
add esp, 8
xor eax, eax
jmp 0x100094a8
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 0x100094a5
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000949b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000949b
call fcn.1002e25f
call fcn.10001240
push str.invalid_stoi_argument
call fcn.1001060a
push str.stoi_argument_out_of_range
call fcn.1001064a
int3