Function at 0x43a6c0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4c462c
mov eax, dword fs:[0]
push eax
mov eax, 0x2454
call fcn.004b1040
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x2450], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4da8f0]
xor eax, esp
push eax
lea eax, [esp + 0x2468]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2478]
mov ecx, dword [esp + 0x2480]
mov esi, dword [esp + 0x247c]
mov bl, byte [esp + 0x2484]
xor edi, edi
mov dword [esp + 0x20], ecx
mov byte [esp + 0xc64], 0
cmp eax, edi
je 0x43a74f
lea edx, [esp + 0xc64]
test bl, bl
je 0x43a743
push 1
push edx
push eax
call fcn.00457100
jmp 0x43a74f
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x43a745
xor eax, eax
mov word [esp + 0x1464], ax
cmp esi, edi
je 0x43a78f
test bl, bl
je 0x43a773
push 1
lea ecx, [esp + 0x1468]
push ecx
push esi
call fcn.004571f0
jmp 0x43a78f
lea edx, [esp + 0x1464]
mov eax, esi
sub edx, esi
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x43a780
lea ecx, [esp + 0x3c]
call fcn.00434590
mov dword [esp + 0x2470], edi
cmp byte [esp + 0xc64], 0
jne 0x43a7b3
cmp word [esp + 0x1464], di
je 0x43a822
mov bl, byte [esp + 0x2488]
test bl, bl
je 0x43a7d9
lea edx, [esp + 0x1464]
push edx
lea eax, [esp + 0xc68]
push eax
lea ecx, [esp + 0x44]
call fcn.00434b50
jmp 0x43a7f3
push edi
lea ecx, [esp + 0x1468]
push ecx
lea edx, [esp + 0xc6c]
push edx
lea ecx, [esp + 0x48]
call fcn.004349d0
test al, al
jne 0x43a82d
test bl, bl
je 0x43a807
push 6
mov ecx, 0x508304
call fcn.0042d410
mov dword [esp + 0x2470], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.004349a0
xor al, al
jmp 0x43acdb
push 1
lea ecx, [esp + 0x40]
call fcn.00434960
push 0x405
call fcn.004b1137
mov ebx, eax
add esp, 4
mov dword [esp + 0x24], ebx
cmp ebx, edi
jne 0x43a84e
mov ecx, 0x508304
call fcn.0042cdb0
mov ebp, 0x405
mov esi, ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], esi
mov byte [esp + 0x2470], 1
push 0x400
push ebx
lea ecx, [esp + 0x44]
call fcn.00435300
test eax, eax
je 0x43a8cb
add ebp, eax
add edi, eax
mov dword [esp + 0x28], ebp
cmp ebp, esi
jbe 0x43a8b5
mov eax, esi
shr eax, 2
lea esi, [eax + esi + 0x20]
cmp ebp, esi
jbe 0x43a893
mov esi, ebp
push esi
push ebx
call fcn.004b128f
mov ebx, eax
add esp, 8
mov dword [esp + 0x24], ebx
test ebx, ebx
jne 0x43a8b1
mov ecx, 0x508304
call fcn.0042cdb0
mov dword [esp + 0x2c], esi
lea eax, [ebx + edi]
push 0x400
push eax
lea ecx, [esp + 0x44]
call fcn.00435300
test eax, eax
jne 0x43a878
xor eax, eax
mov dword [ebx + edi], eax
mov byte [ebx + edi + 4], al
mov eax, dword [esp + 0x248c]
cmp eax, 3
je 0x43aa0b
test eax, eax
jne 0x43a8f9
mov edx, edi
mov esi, ebx
call fcn.0043a680
test al, al
jne 0x43aa0b
cmp byte [ebx], 0
mov edi, ebx
je 0x43acb0
mov ebp, dword [esp + 0x20]
xor ecx, ecx
cmp byte [edi], 0xd
mov esi, edi
je 0x43a939
mov al, byte [esi]
cmp al, 0xa
je 0x43a939
test al, al
je 0x43a939
cmp byte [esp + 0x2494], 0
je 0x43a933
cmp al, 0x2f
jne 0x43a933
cmp byte [esi + 1], al
jne 0x43a933
mov byte [esi], 0
mov ecx, esi
inc esi
cmp byte [esi], 0xd
jne 0x43a911
mov byte [esi], 0
mov eax, ecx
test ecx, ecx
jne 0x43a944
mov eax, esi
dec eax
cmp eax, edi
jb 0x43a964
lea esp, [esp]
mov cl, byte [eax]
cmp cl, 0x20
je 0x43a95c
cmp cl, 9
jne 0x43a964
mov byte [eax], 0
dec eax
cmp eax, edi
jae 0x43a950
mov al, byte [edi]
test al, al
je 0x43a9e7
cmp byte [esp + 0x2490], 0
je 0x43a995
cmp al, 0x22
jne 0x43a995
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43a980
sub eax, edx
cmp byte [eax + edi - 1], 0x22
jne 0x43a995
mov byte [eax + edi - 1], cl
inc edi
cmp dword [esp + 0x248c], 2
jne 0x43a9a7
push edi
push edi
call dword [sym.imp.USER32.dll_OemToCharA]
cmp byte [esp + 0x2498], 0
je 0x43a9df
cmp byte [edi], 0x25
jne 0x43a9df
push 0x400
lea ecx, [esp + 0x1068]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x43a9df
cmp eax, 0x400
jae 0x43a9df
lea edx, [esp + 0x1064]
push edx
jmp 0x43a9e0
push edi
mov ecx, ebp
call fcn.00471160
lea edi, [esi + 1]
lea ebx, [ebx]
mov al, byte [edi]
cmp al, 0xd
je 0x43a9fa
cmp al, 0xa
jne 0x43a9fd
inc edi
jmp 0x43a9f0
cmp byte [edi], 0
jne 0x43a908
jmp 0x43acb0
mov edi, ebp
shr edi, 1
inc edi
lea eax, [edi + edi]
push eax
call fcn.004b1137
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
test esi, esi
jne 0x43aa34
test edi, edi
je 0x43aa34
mov ecx, 0x508304
call fcn.0042cdb0
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov byte [esp + 0x2470], 2
lea ecx, [ebp - 1]
cmp ecx, 2
jbe 0x43aa86
add ecx, 0xfffffffd
mov edx, 0xfffffffe
shr ecx, 1
sub edx, ebx
lea eax, [ebx + 2]
inc ecx
lea esp, [esp]
movzx di, byte [eax + 1]
mov ebx, 0x100
imul di, bx
movzx bx, byte [eax]
add di, bx
lea ebx, [edx + eax]
shr ebx, 1
add eax, 2
sub ecx, 1
mov word [esi + ebx*2], di
jne 0x43aa60
xor eax, eax
mov edi, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov byte [esp + 0x2470], 3
cmp word [esi], ax
je 0x43ac7e
xor ecx, ecx
cmp word [edi], 0xd
mov ebx, edi
je 0x43aae5
movzx eax, word [ebx]
cmp ax, 0xa
je 0x43aae5
test ax, ax
je 0x43aae5
cmp byte [esp + 0x2494], 0
je 0x43aadc
cmp ax, 0x2f
jne 0x43aadc
cmp word [ebx + 2], ax
jne 0x43aadc
xor ecx, ecx
mov word [ebx], cx
mov ecx, ebx
add ebx, 2
cmp word [ebx], 0xd
jne 0x43aab1
xor edx, edx
mov word [ebx], dx
mov eax, ecx
test ecx, ecx
jne 0x43aaf2
mov eax, ebx
add eax, 0xfffffffe
cmp eax, edi
jb 0x43ab1b
lea esp, [esp]
movzx ecx, word [eax]
cmp cx, 0x20
je 0x43ab0f
cmp cx, 9
jne 0x43ab1b
xor ecx, ecx
mov word [eax], cx
sub eax, 2
cmp eax, edi
jae 0x43ab00
cmp word [edi], 0
je 0x43ac5c
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43ab30
mov ecx, dword [esp + 0x18]
sub eax, edx
sar eax, 1
mov ebp, eax
mov edx, ebp
sub edx, ecx
lea eax, [edx*4 + 4]
test eax, eax
jle 0x43ab9f
add ecx, eax
mov dword [esp + 0x18], ecx
cmp ecx, dword [esp + 0x1c]
jbe 0x43ab9f
mov eax, dword [esp + 0x1c]
mov ecx, eax
shr ecx, 2
lea esi, [ecx + eax + 0x20]
mov eax, dword [esp + 0x18]
cmp eax, esi
jbe 0x43ab77
mov esi, eax
mov edx, dword [esp + 0x14]
push esi
push edx
call fcn.004b128f
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x43ab97
mov ecx, 0x508304
call fcn.0042cdb0
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
cmp byte [esp + 0x2490], 0
je 0x43abc1
cmp word [edi], 0x22
jne 0x43abc1
cmp word [edi + ebp*2 - 2], 0x22
jne 0x43abc1
xor eax, eax
mov word [edi + ebp*2 - 2], ax
add edi, 2
push ecx
mov ecx, dword [esp + 0x18]
push ecx
push edi
call fcn.00477f10
cmp byte [esp + 0x2498], 0
je 0x43ac4d
cmp word [edi], 0x25
jne 0x43ac4d
mov ecx, dword [esp + 0x14]
push 0x400
lea eax, [esp + 0x1068]
xor edx, edx
push eax
push ecx
mov word [esp + 0x1c70], dx
lea ebp, [edx + 1]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov esi, eax
test esi, esi
je 0x43ac4d
call fcn.00444e60
test eax, eax
je 0x43ac27
push 0x400
lea edx, [esp + 0x1c68]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
cmp esi, 0x400
jae 0x43ac4d
test ebp, ebp
je 0x43ac4d
cmp ebp, 0x400
jae 0x43ac4d
lea eax, [esp + 0x1c64]
push eax
lea ecx, [esp + 0x1068]
push ecx
jmp 0x43ac53
mov edx, dword [esp + 0x14]
push edi
push edx
mov ecx, dword [esp + 0x28]
call fcn.00470dd0
lea edi, [ebx + 2]
nop
movzx eax, word [edi]
cmp ax, 0xd
je 0x43ac6f
cmp ax, 0xa
jne 0x43ac74
add edi, 2
jmp 0x43ac60
cmp word [edi], 0
jne 0x43aaa7
mov byte [esp + 0x2470], 2
mov eax, dword [esp + 0x14]
test eax, eax
je 0x43ac97
push eax
call fcn.004b1201
add esp, 4
mov byte [esp + 0x2470], 1
mov eax, dword [esp + 0x30]
push eax
call fcn.004b1201
mov ebx, dword [esp + 0x28]
add esp, 4
mov byte [esp + 0x2470], 0
test ebx, ebx
je 0x43acc5
push ebx
call fcn.004b1201
add esp, 4
mov dword [esp + 0x2470], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.004349a0
mov al, 1
mov ecx, dword [esp + 0x2468]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2450]
xor ecx, esp
call fcn.004b102c
add esp, 0x2460
ret 0x24