Function at 0x440750
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4d289c
mov eax, dword fs:[0]
push eax
mov eax, 0x305c
call fcn.004bfc70
mov eax, dword [0x4ea93c]
xor eax, esp
mov dword [esp + 0x3058], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ea93c]
xor eax, esp
push eax
lea eax, [esp + 0x3070]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3080]
mov ecx, dword [esp + 0x3084]
xor edx, edx
xor esi, esi
mov dword [esp + 0x14], ecx
mov word [esp + 0x206c], dx
cmp eax, esi
je 0x4407e4
cmp byte [esp + 0x3088], dl
je 0x4407d1
push 1
push 0x800
lea ecx, [esp + 0x2074]
push ecx
push eax
call fcn.0045fdd0
jmp 0x4407e4
push 0x800
push eax
lea edx, [esp + 0x2074]
push edx
call fcn.0047e340
lea ecx, [esp + 0x48]
call fcn.0043acd0
mov dword [esp + 0x3078], esi
cmp word [esp + 0x206c], si
je 0x44085d
mov bl, byte [esp + 0x308c]
test bl, bl
je 0x44081c
lea eax, [esp + 0x206c]
push eax
lea ecx, [esp + 0x4c]
call fcn.0043ae60
jmp 0x44082e
push esi
lea ecx, [esp + 0x2070]
push ecx
lea ecx, [esp + 0x50]
call fcn.0043ad10
test al, al
jne 0x440865
test bl, bl
je 0x440842
push 6
mov ecx, 0x51e7a8
call fcn.004333b0
mov dword [esp + 0x3078], 0xffffffff
lea ecx, [esp + 0x48]
call fcn.0043b3e0
xor al, al
jmp 0x440c6b
mov dword [esp + 0x54], 1
push 0x405
lea ecx, [esp + 0x2c]
xor edi, edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.0040b8e0
mov byte [esp + 0x3078], 1
mov edx, dword [esp + 0x28]
push 0x400
push edx
lea ecx, [esp + 0x50]
call fcn.0043b730
cmp eax, esi
je 0x4408cc
push eax
lea ecx, [esp + 0x2c]
add edi, eax
call fcn.0040b8e0
mov ebp, dword [esp + 0x28]
lea eax, [edi + ebp]
push 0x400
push eax
lea ecx, [esp + 0x50]
call fcn.0043b730
cmp eax, esi
jne 0x4408a4
jmp 0x4408d0
mov ebp, dword [esp + 0x28]
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [edi + ebp], eax
mov byte [edi + ebp + 4], al
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov byte [esp + 0x3078], 2
mov eax, dword [esp + 0x3090]
cmp eax, 3
je 0x440a5d
cmp eax, esi
jne 0x440918
mov edx, edi
mov esi, ebp
call fcn.00440710
test al, al
jne 0x440a5b
cmp byte [ebp], 0
mov edi, ebp
je 0x440c2b
xor ecx, ecx
cmp byte [edi], 0xd
mov esi, edi
je 0x440955
mov al, byte [esi]
cmp al, 0xa
je 0x440955
test al, al
je 0x440955
cmp byte [esp + 0x3098], 0
je 0x44094f
cmp al, 0x2f
jne 0x44094f
cmp byte [esi + 1], al
jne 0x44094f
mov byte [esi], 0
mov ecx, esi
inc esi
cmp byte [esi], 0xd
jne 0x44092d
mov byte [esi], 0
mov eax, ecx
test ecx, ecx
jne 0x440960
mov eax, esi
dec eax
cmp eax, edi
jb 0x440979
mov cl, byte [eax]
cmp cl, 0x20
je 0x440971
cmp cl, 9
jne 0x440979
mov byte [eax], 0
dec eax
cmp eax, edi
jae 0x440965
mov al, byte [edi]
test al, al
je 0x440a38
cmp byte [esp + 0x3094], 0
je 0x4409ab
cmp al, 0x22
jne 0x4409ab
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x440996
sub eax, edx
cmp byte [eax + edi - 1], 0x22
jne 0x4409ab
mov byte [eax + edi - 1], cl
inc edi
cmp dword [esp + 0x3090], 2
jne 0x4409bd
push edi
push edi
call dword [sym.imp.USER32.dll_OemToCharA]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4409c2
sub eax, edx
inc eax
cmp eax, dword [esp + 0x20]
jbe 0x4409e6
sub eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
call fcn.0040b9e0
mov ebx, dword [esp + 0x18]
jmp 0x4409ea
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
push eax
push ebx
push edi
call fcn.004859f0
cmp byte [esp + 0x309c], 0
je 0x440a2e
cmp byte [edi], 0x25
jne 0x440a2e
push 0x800
lea ecx, [esp + 0x1070]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x440a2e
cmp eax, 0x800
jae 0x440a2e
lea edx, [esp + 0x106c]
push edx
jmp 0x440a2f
push ebx
mov ecx, dword [esp + 0x18]
call fcn.0047e700
lea edi, [esi + 1]
jmp 0x440a40
mov al, byte [edi]
cmp al, 0xd
je 0x440a4a
cmp al, 0xa
jne 0x440a4d
inc edi
jmp 0x440a40
cmp byte [edi], 0
jne 0x440924
jmp 0x440c2b
xor esi, esi
mov edi, dword [esp + 0x2c]
mov eax, edi
shr eax, 1
inc eax
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
call fcn.0040b9e0
mov byte [esp + 0x3078], 3
lea ecx, [edi - 1]
mov edi, dword [esp + 0x38]
cmp ecx, 2
jbe 0x440adc
add ecx, 0xfffffffd
mov edx, 0xfffffffe
shr ecx, 1
sub edx, ebp
lea eax, [ebp + 2]
inc ecx
jmp 0x440ab0
movzx si, byte [eax + 1]
mov ebx, 0x100
imul si, bx
movzx bx, byte [eax]
add si, bx
lea ebx, [edx + eax]
shr ebx, 1
add eax, 2
sub ecx, 1
mov word [edi + ebx*2], si
jne 0x440ab0
mov ebx, dword [esp + 0x18]
xor esi, esi
cmp word [edi], si
je 0x440c1a
mov bl, byte [esp + 0x3094]
lea esp, [esp]
xor ecx, ecx
cmp word [edi], 0xd
mov ebp, edi
je 0x440b31
movzx eax, word [ebp]
cmp ax, 0xa
je 0x440b31
test ax, ax
je 0x440b31
cmp byte [esp + 0x3098], 0
je 0x440b27
cmp ax, 0x2f
jne 0x440b27
cmp word [ebp + 2], ax
jne 0x440b27
xor ecx, ecx
mov word [ebp], cx
mov ecx, ebp
add ebp, 2
cmp word [ebp], 0xd
jne 0x440afa
xor edx, edx
mov word [ebp], dx
mov eax, ecx
test ecx, ecx
jne 0x440b3f
mov eax, ebp
add eax, 0xfffffffe
cmp eax, edi
jb 0x440b61
movzx ecx, word [eax]
cmp cx, 0x20
je 0x440b55
cmp cx, 9
jne 0x440b61
xor ecx, ecx
mov word [eax], cx
sub eax, 2
cmp eax, edi
jae 0x440b46
movzx esi, word [edi]
test si, si
je 0x440be7
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x440b70
sub eax, edx
sar eax, 1
test bl, bl
je 0x440b9a
cmp si, 0x22
jne 0x440b9a
cmp word [edi + eax*2 - 2], si
jne 0x440b9a
xor edx, edx
mov word [edi + eax*2 - 2], dx
add edi, 2
cmp byte [esp + 0x309c], 0
je 0x440bdd
cmp word [edi], 0x25
jne 0x440bdd
push 0x800
lea ecx, [esp + 0x1070]
push ecx
xor eax, eax
push edi
mov word [esp + 0x1078], ax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x440bdd
cmp eax, 0x800
jae 0x440bdd
lea edx, [esp + 0x106c]
push edx
jmp 0x440bde
push edi
mov ecx, dword [esp + 0x18]
call fcn.0047e700
lea edi, [ebp + 2]
lea ebx, [ebx]
movzx eax, word [edi]
cmp ax, 0xd
je 0x440bff
cmp ax, 0xa
jne 0x440c04
add edi, 2
jmp 0x440bf0
cmp word [edi], 0
jne 0x440af0
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x38]
mov byte [esp + 0x3078], 2
push edi
call fcn.004bff04
add esp, 4
mov byte [esp + 0x3078], 1
test ebx, ebx
je 0x440c40
push ebx
call fcn.004bff04
add esp, 4
mov byte [esp + 0x3078], 0
test ebp, ebp
je 0x440c55
push ebp
call fcn.004bff04
add esp, 4
mov dword [esp + 0x3078], 0xffffffff
lea ecx, [esp + 0x48]
call fcn.0043b3e0
mov al, 1
mov ecx, dword [esp + 0x3070]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3058]
xor ecx, esp
call fcn.004bfc52
add esp, 0x3068
ret 0x20