Function at 0x100776e0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x101f0098]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], eax
call fcn.101e975f
mov ebx, dword [ebp + 0xc]
mov edi, esi
neg edi
sbb edi, edi
and edi, 0x7789f794
add edi, 0x8876086c
mov dword [esp + 0xc], 0
js 0x100777ad
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x10077744
mov edi, 0x8876086c
jmp 0x100777ad
test ebx, 0xffffffea
je 0x10077753
mov edi, 0x8876086c
jmp 0x100777ad
push 0x100361f0
mov dword [eax], 0
call dword [sym.imp.msvcrt.dll_getenv]
add esp, 4
test eax, eax
push ebx
lea ecx, [esp + 0x14]
setne byte [0x101f7e60]
call fcn.1009d9b0
lea ecx, [esp + 0x10]
call fcn.1009d9b0
cmp byte [esp + 0x20], 0
je 0x100777ab
lea eax, [esp + 0x10]
push 0x1003621c
push eax
call fcn.1009d9b0
lea eax, [esp + 0x18]
push 0x10036224
push eax
call fcn.1009d9b0
add esp, 0x10
xor edi, edi
test edi, edi
js 0x10077e13
cmp byte [esp + 0x20], 0
je 0x100777d9
lea eax, [esp + 0x10]
push 0x10036224
push eax
call fcn.1009d9b0
add esp, 8
push 2
lea ecx, [esp + 0x14]
call fcn.1009d9b0
mov eax, dword [esi]
lea ecx, [esp + 0xec]
push ecx
push esi
call dword [eax + 0x18]
mov edi, eax
test edi, edi
js 0x10077e13
xor ecx, ecx
mov dword [esp + 0x30], ecx
cmp dword [esp + 0xf8], ecx
jbe 0x10077a1c
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x24]
mov esi, eax
mov ecx, dword [esi]
push esi
call dword [ecx]
test eax, eax
je 0x100779ff
mov ecx, dword [esi]
push esi
call dword [ecx + 4]
mov edi, eax
mov ecx, dword [edi]
push edi
call dword [ecx]
test eax, eax
je 0x10077bcf
mov ecx, dword [edi]
lea eax, [esp + 0x58]
push eax
push edi
call dword [ecx + 4]
mov edi, eax
test edi, edi
js 0x10077e13
mov eax, dword [esi]
lea ecx, [esp + 0x104]
push ecx
push esi
call dword [eax + 8]
mov edi, eax
test edi, edi
js 0x10077e13
mov eax, dword [esp + 0x60]
cmp eax, 0xf
jl 0x100779ff
cmp eax, 0x10
jle 0x10077877
cmp eax, 0x15
jne 0x100779ff
mov eax, dword [esi]
push esi
call dword [eax + 0x48]
mov ebx, eax
mov ecx, dword [ebx]
push ebx
mov dword [esp + 0x38], ebx
call dword [ecx]
test eax, eax
je 0x10077bcf
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x10]
test ecx, ecx
jne 0x100778b7
push dword [esp + 0x104]
push dword [esp + 0x5c]
push 0x10036248
push eax
call fcn.1009d9b0
add esp, 0x10
jmp 0x100778d1
push ecx
push dword [esp + 0x108]
push dword [esp + 0x60]
push 0x10036254
push eax
call fcn.1009d9b0
add esp, 0x14
mov eax, dword [esp + 0x64]
cmp eax, 1
jae 0x100778e5
mov ecx, 1
mov dword [esp + 0x2c], ecx
jmp 0x100778eb
mov ecx, eax
mov dword [esp + 0x2c], eax
xor esi, esi
test ecx, ecx
je 0x100779d7
mov eax, dword [ebx]
lea ecx, [esp + 0x80]
push ecx
push esi
push ebx
call dword [eax + 0x64]
mov edi, eax
test edi, edi
js 0x10077e13
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x10077b9e
mov ebx, dword [esp + 0x88]
lea ecx, [esp + 0xc]
push ecx
push 0
push dword [ebp + 0xc]
push eax
call fcn.1009d9b0
mov edi, eax
test edi, edi
js 0x10077e13
cmp dword [esp + 0x64], 0
lea eax, [esp + 0x10]
jbe 0x10077976
push 0x10036264
push eax
call fcn.1009d9b0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
add esp, 8
push 0
push 4
push eax
call dword [ecx + 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.1009d9b0
push 0x10036274
jmp 0x100779a1
push 0x10036280
push eax
call fcn.1009d9b0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
add esp, 8
push 0
push 4
push eax
call dword [ecx + 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.1009d9b0
push 0x10036288
lea eax, [esp + 0x14]
push eax
call fcn.1009d9b0
mov ecx, dword [esp + 0x14]
add esp, 8
test ecx, ecx
je 0x100779c4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esp + 0xc], 0
mov ebx, dword [esp + 0x34]
inc esi
cmp esi, dword [esp + 0x2c]
jb 0x100778f5
mov eax, dword [esp + 0x64]
test eax, eax
je 0x100779ed
lea eax, [esp + 0x10]
push 0x10036288
push eax
call fcn.1009d9b0
add esp, 8
lea eax, [esp + 0x10]
push 0x100362a0
push eax
call fcn.1009d9b0
add esp, 8
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x38]
inc ecx
mov dword [esp + 0x30], ecx
cmp ecx, dword [esp + 0xf8]
jb 0x10077804
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
mov dword [esp + 0x2c], ecx
cmp dword [esp + 0x100], ecx
jbe 0x10077daf
nop
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x30]
mov esi, eax
mov ecx, dword [esi]
lea eax, [esp + 0x4c]
push eax
push esi
mov dword [esp + 0x3c], esi
call dword [ecx + 4]
mov edi, eax
test edi, edi
js 0x10077e13
lea eax, [esp + 0x10]
push 0x100362a4
push eax
call fcn.1009d9b0
mov eax, dword [esp + 0x54]
add esp, 8
test eax, eax
je 0x10077a7f
push eax
lea eax, [esp + 0x14]
push 0x100338e4
push eax
call fcn.1009d9b0
add esp, 0xc
lea eax, [esp + 0x10]
push 0x100362b4
push eax
call fcn.1009d9b0
xor ecx, ecx
add esp, 8
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x50], ecx
jbe 0x10077d80
mov dword [esp + 0x40], 0x1003408c
mov dword [esp + 0x44], 0x1003409c
mov dword [esp + 0x48], 0x10034080
lea esp, [esp]
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x10]
mov esi, eax
mov ecx, dword [esi]
push esi
call dword [ecx]
test eax, eax
je 0x10077d66
mov ecx, dword [esi]
lea eax, [esp + 0xc4]
push eax
push esi
call dword [ecx + 4]
mov edi, eax
test edi, edi
js 0x10077e13
lea eax, [esp + 0x10]
push 0x100362b8
push eax
call fcn.1009d9b0
mov eax, dword [esp + 0xcc]
add esp, 8
test eax, eax
je 0x10077b1e
push eax
lea eax, [esp + 0x14]
push 0x100338e4
push eax
call fcn.1009d9b0
add esp, 0xc
lea eax, [esp + 0x10]
push 0x100362c4
push eax
call fcn.1009d9b0
mov eax, dword [esi]
add esp, 8
lea ecx, [esp + 0x104]
push ecx
push esi
call dword [eax + 8]
mov edi, eax
test edi, edi
js 0x10077e13
mov eax, dword [esi]
lea ecx, [esp + 0x10c]
push ecx
push esi
call dword [eax + 0xc]
mov edi, eax
test edi, edi
js 0x10077e13
mov eax, dword [esi]
lea ecx, [esp + 0x114]
push ecx
push esi
call dword [eax + 0x10]
mov edi, eax
test edi, edi
js 0x10077e13
xor esi, esi
lea ebx, [ebx]
mov eax, dword [esp + esi*8 + 0x104]
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jne 0x10077bd9
push dword [esp + esi*4 + 0x40]
push 0x100362cc
jmp 0x10077d3a
cmp dword [esp + 0x64], 0
lea eax, [esp + 0x10]
jbe 0x10077bbc
push 0x1003628c
push eax
call fcn.1009d9b0
add esp, 8
jmp 0x100779c8
push 0x10036298
push eax
call fcn.1009d9b0
add esp, 8
jmp 0x100779c8
mov edi, 0x80004005
jmp 0x10077e13
mov ecx, dword [esp + esi*8 + 0x104]
mov eax, dword [ecx]
lea edx, [esp + 0x80]
push edx
push dword [esp + esi*8 + 0x10c]
push ecx
call dword [eax + 0x64]
mov edi, eax
test edi, edi
js 0x10077e13
cmp dword [esp + 0x84], 0
jne 0x10077c99
mov eax, dword [esp + esi*8 + 0x104]
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov ecx, dword [eax]
lea edx, [esp + 0x9c]
push edx
push eax
call dword [ecx + 4]
mov edi, eax
test edi, edi
js 0x10077e13
mov eax, dword [esp + esi*8 + 0x104]
mov ecx, dword [eax]
lea edx, [esp + 0x58]
push edx
push eax
call dword [ecx + 8]
mov edi, eax
test edi, edi
js 0x10077e13
cmp dword [esp + 0xa8], 0
lea eax, [esp + 0x10]
jbe 0x10077c7e
push dword [esp + esi*8 + 0x108]
push dword [esp + 0x5c]
push dword [esp + esi*4 + 0x48]
push 0x100362e8
push eax
call fcn.1009d9b0
add esp, 0x14
jmp 0x10077d47
push dword [esp + 0x58]
push dword [esp + esi*4 + 0x44]
push 0x10036300
push eax
call fcn.1009d9b0
add esp, 0x10
jmp 0x10077d47
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x10077d31
lea ecx, [esp + 0xc]
push ecx
push 0
push ebx
mov ebx, dword [esp + 0x94]
push eax
call fcn.1009d9b0
mov edi, eax
test edi, edi
js 0x10077e13
push dword [esp + esi*4 + 0x40]
lea eax, [esp + 0x14]
push 0x10036314
push eax
call fcn.1009d9b0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
add esp, 0xc
push 0
push 0xc
push eax
call dword [ecx + 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.1009d9b0
push 0
push 8
push 0x1003632c
lea ecx, [esp + 0x1c]
call fcn.1009d9b0
lea eax, [esp + 0x10]
push 0x1003417c
push eax
call fcn.1009d9b0
mov ecx, dword [esp + 0x14]
add esp, 8
test ecx, ecx
je 0x10077d47
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esp + 0xc], 0
jmp 0x10077d47
push dword [esp + esi*4 + 0x40]
push 0x10036330
lea eax, [esp + 0x18]
push eax
call fcn.1009d9b0
add esp, 0xc
mov ebx, dword [ebp + 0xc]
inc esi
cmp esi, 3
jb 0x10077b80
lea eax, [esp + 0x10]
push 0x10036344
push eax
call fcn.1009d9b0
add esp, 8
mov ecx, dword [esp + 0x30]
mov ebx, dword [ebp + 0xc]
mov esi, dword [esp + 0x34]
inc ecx
mov dword [esp + 0x30], ecx
cmp ecx, dword [esp + 0x50]
jb 0x10077ac0
lea eax, [esp + 0x10]
push 0x1003634c
push eax
call fcn.1009d9b0
mov ecx, dword [esp + 0x34]
mov ebx, dword [ebp + 0xc]
mov esi, dword [esp + 0x40]
inc ecx
add esp, 8
mov dword [esp + 0x2c], ecx
cmp ecx, dword [esp + 0x100]
jb 0x10077a30
cmp byte [esp + 0x20], 0
je 0x10077dd8
lea ecx, [esp + 0x10]
call fcn.101e9b7a
cmp byte [esp + 0x20], 0
je 0x10077dd8
lea eax, [esp + 0x10]
push 0x10036240
push eax
call fcn.1009d9b0
add esp, 8
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x3c]
inc eax
push esi
push eax
call fcn.1009d9b0
test eax, eax
js 0x10077e11
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
push dword [esp + 0x10]
mov esi, eax
push dword [esp + 0x1c]
push esi
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov byte [ecx + esi], 0
mov eax, edi
mov edi, eax
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x10077e29
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esp + 0xc], 0
lea ecx, [esp + 0x10]
call fcn.101e977d
mov ecx, dword [esp + 0x11c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101ec0b6
mov esp, ebp
pop ebp
ret 0xc