Function at 0x4b92c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x68
mov esi, esp
mov ebx, edx
mov dword [esi + 8], ecx
push dword [ebp + 8]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edi, eax
mov eax, 0xfc1
sub eax, edi
mov dword [esi + 0x54], eax
test eax, eax
jle 0x4b9754
mov eax, dword [ebp + 0x14]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
test eax, eax
sete cl
mov dword [esi + 0x1c], ebx
lea edx, [ebx - 7]
cmp edx, 0xfffffffe
setb dl
mov dword [esi + 0x3c], 0
or dl, cl
mov byte [esi + 3], dl
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov ebx, 0
jne 0x4b9387
lea ecx, [esi + 0x20]
push dword [ebp + 0x10]
push eax
push str._s:_u_
push ecx
call fcn.004ba8a0
add esp, 0x10
test byte [esi + 0x10], 1
je 0x4b936d
mov eax, dword [esi + 0x18]
mov byte [eax], 0
mov dword [esi + 0x14], 0
test byte [esi + 0x10], 1
je 0x4b936d
push dword [esi + 0x18]
call fcn.0051c570
add esp, 4
movsd xmm0, qword [esi + 0x20]
movsd qword [esi + 0x10], xmm0
mov eax, dword [esi + 0x28]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x3c], eax
movzx ebx, byte [esi + 0x10]
mov dword [esi + 0x40], esp
mov eax, 0xfc2
sub eax, edi
mov dword [esi + 0x48], eax
mov eax, 0xfc5
sub eax, edi
and eax, 0xfffffffc
call fcn.00526390
mov dword [esi + 0xc], esp
push 0xa
push dword [ebp + 0x14]
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
add esp, 8
test eax, eax
je 0x4b95a0
mov edx, eax
mov eax, ebx
shr al, 1
test bl, 1
movzx eax, al
mov ecx, dword [esi + 0x3c]
cmove ecx, eax
inc ecx
mov dword [esi + 0x3c], ecx
lea eax, [esi + 0x11]
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 8]
dec eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x1c]
lea ecx, [eax + 2]
cmp eax, 5
mov eax, 7
mov dword [esi + 0x50], ecx
cmovb eax, ecx
mov dword [esi + 0x58], eax
xor edi, edi
jmp 0x4b943e
push dword [esi + 4]
push edi
push eax
push str._s_.s
push edx
push ecx
call fcn.004ba2f0
add esp, 0x18
mov edi, eax
test eax, eax
mov eax, 0
cmovle edi, eax
add edi, ebx
mov eax, dword [esi + 0x60]
inc eax
push 0xa
mov dword [esi + 4], eax
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
add esp, 8
mov edx, eax
test eax, eax
je 0x4b951a
mov ebx, 0
mov eax, 0x87c226
test edi, edi
mov ecx, dword [esi + 4]
je 0x4b94d1
mov eax, dword [esi + 0x3c]
add eax, edi
add eax, edx
sub eax, ecx
cmp eax, dword [esi + 0x54]
jle 0x4b94c0
mov edi, edx
mov eax, 0x7fffffff
cmp dword [esi + 0x44], 3
ja 0x4b9478
mov eax, dword [esi + 8]
mov eax, dword [eax*4 + 0x87c234]
mov dword [esi + 0x20], 0x1c
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x58]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov eax, dword [esi + 0xc]
mov dword [esi + 0x38], eax
lea eax, [esi + 0x20]
push eax
call fcn.006123d0
add esp, 4
xor ebx, ebx
mov eax, 0x87c226
mov ecx, dword [esi + 4]
mov edx, edi
jmp 0x4b94d1
test edi, edi
mov eax, 0x87c226
mov ebx, 0x87c214
cmovg eax, ebx
mov ebx, edi
mov dword [esi + 4], ecx
mov dword [esi + 0x60], edx
mov edi, edx
sub edi, ecx
mov ecx, dword [esi + 0xc]
add ecx, ebx
mov edx, dword [esi + 0x48]
sub edx, ebx
cmp byte [esi + 3], 0
jne 0x4b9400
mov dword [esi + 0x5c], ecx
test byte [esi + 0x10], 1
lea ecx, [esi + 0x11]
je 0x4b94fe
mov ecx, dword [esi + 0x18]
push dword [esi + 4]
push edi
push ecx
push eax
push str._s_s_.s
push edx
push dword [esi + 0x5c]
call fcn.004ba2f0
add esp, 0x1c
jmp 0x4b9414
test edi, edi
mov ecx, dword [esi + 4]
je 0x4b95fa
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ecx, dword [esi + 0x3c]
add ecx, edi
add ecx, eax
cmp ecx, dword [esi + 0x54]
jle 0x4b9692
mov eax, 0x7fffffff
cmp dword [esi + 0x44], 3
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0x1c]
ja 0x4b9556
mov eax, dword [edi*4 + 0x87c234]
cmp ebx, 5
mov ecx, 7
cmovb ecx, dword [esi + 0x50]
mov dword [esi + 0x20], 0x1c
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
mov eax, dword [ebp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov eax, dword [esi + 0xc]
mov dword [esi + 0x38], eax
lea eax, [esi + 0x20]
push eax
call fcn.006123d0
add esp, 4
mov ecx, dword [esi + 4]
cmp byte [esi + 3], 0
jne 0x4b95af
jmp 0x4b9606
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0x1c]
mov ecx, dword [ebp + 0x14]
cmp byte [esi + 3], 0
je 0x4b9606
mov dword [esi + 4], ecx
lea ecx, [edi - 1]
mov eax, 0x7fffffff
cmp ecx, 3
ja 0x4b95c6
mov eax, dword [edi*4 + 0x87c234]
cmp ebx, 5
lea ecx, [ebx + 2]
mov edx, 7
cmovb edx, ecx
mov dword [esi + 0x20], 0x1c
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], edx
mov eax, dword [ebp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov eax, dword [esi + 4]
jmp 0x4b9665
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0x1c]
cmp byte [esi + 3], 0
jne 0x4b95af
test byte [esi + 0x10], 1
je 0x4b9611
mov eax, dword [esi + 0x18]
jmp 0x4b9614
lea eax, [esi + 0x11]
push ecx
push eax
push 0x87c221
push dword [esi + 0x48]
push dword [esi + 0xc]
call fcn.004ba2f0
add esp, 0x14
lea ecx, [edi - 1]
mov eax, 0x7fffffff
cmp ecx, 3
ja 0x4b963d
mov eax, dword [edi*4 + 0x87c234]
mov dword [esi + 0x20], 0x1c
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], 7
mov eax, dword [ebp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov eax, dword [esi + 0xc]
mov dword [esi + 0x38], eax
lea eax, [esi + 0x20]
push eax
call fcn.006123d0
add esp, 4
mov edi, dword [esi + 0x40]
mov esp, edi
test byte [esi + 0x10], 1
je 0x4b968a
push dword [esi + 0x18]
call fcn.0051c570
add esp, 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test edi, edi
mov eax, 0x87c214
mov ecx, 0x87c226
cmovg ecx, eax
mov eax, dword [esi + 0xc]
add eax, edi
mov edx, dword [esi + 0x48]
sub edx, edi
cmp byte [esi + 3], 0
mov ebx, dword [esi + 0x1c]
je 0x4b96d1
push dword [esi + 4]
push 0xffffffffffffffff
push ecx
push str._s_.s
push edx
push eax
call fcn.004ba2f0
add esp, 0x18
mov ecx, dword [esi + 8]
mov edi, dword [esi + 0x40]
jmp 0x4b96fe
test byte [esi + 0x10], 1
mov edi, dword [esi + 0x40]
je 0x4b96e3
mov ebx, dword [esi + 0x18]
mov dword [esi + 0x4c], ebx
mov ebx, dword [esi + 0x1c]
push dword [esi + 4]
push 0xffffffffffffffff
push dword [esi + 0x4c]
push ecx
push str._s_s_.s
push edx
push eax
call fcn.004ba2f0
add esp, 0x1c
mov ecx, dword [esi + 8]
mov eax, 0x7fffffff
cmp dword [esi + 0x44], 3
ja 0x4b9710
mov eax, dword [ecx*4 + 0x87c234]
cmp ebx, 5
mov ecx, 7
cmovb ecx, dword [esi + 0x50]
mov dword [esi + 0x20], 0x1c
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
mov eax, dword [ebp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov eax, dword [esi + 0xc]
mov dword [esi + 0x38], eax
lea eax, [esi + 0x20]
push eax
call fcn.006123d0
add esp, 4
jmp 0x4b9677
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop dword [eax]