Function at 0x4348e0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4b711c
mov eax, dword fs:[0]
push eax
mov eax, 0x244c
call fcn.004a5370
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0x2448], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cc3b0]
xor eax, esp
push eax
lea eax, [esp + 0x2460]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2470]
mov ecx, dword [esp + 0x2478]
mov esi, dword [esp + 0x2474]
mov bl, byte [esp + 0x247c]
xor edi, edi
mov dword [esp + 0x20], ecx
mov byte [esp + 0xc5c], 0
cmp eax, edi
je 0x43496f
lea edx, [esp + 0xc5c]
test bl, bl
je 0x434963
push 1
push edx
push eax
call fcn.00452500
jmp 0x43496f
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x434965
xor eax, eax
mov word [esp + 0x145c], ax
cmp esi, edi
je 0x4349af
test bl, bl
je 0x434993
push 1
lea ecx, [esp + 0x1460]
push ecx
push esi
call fcn.004525f0
jmp 0x4349af
lea edx, [esp + 0x145c]
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 0x4349a0
lea ecx, [esp + 0x3c]
call fcn.00430310
mov dword [esp + 0x2468], edi
cmp byte [esp + 0xc5c], 0
jne 0x4349d3
cmp word [esp + 0x145c], di
je 0x434a43
mov bl, byte [esp + 0x2480]
test bl, bl
je 0x4349f9
lea edx, [esp + 0x145c]
push edx
lea eax, [esp + 0xc60]
push eax
lea ecx, [esp + 0x44]
call fcn.004308b0
jmp 0x434a14
push edi
push edi
lea ecx, [esp + 0x1464]
push ecx
lea edx, [esp + 0xc68]
push edx
lea ecx, [esp + 0x4c]
call fcn.00430750
test al, al
jne 0x434a4e
test bl, bl
je 0x434a28
push 6
mov ecx, 0x4d76b4
call fcn.004296f0
mov dword [esp + 0x2468], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.00430720
xor al, al
jmp 0x434efb
push 1
lea ecx, [esp + 0x40]
call fcn.004306e0
push 0x405
call fcn.004a4c1c
mov ebx, eax
add esp, 4
mov dword [esp + 0x24], ebx
cmp ebx, edi
jne 0x434a6f
mov ecx, 0x4d76b4
call fcn.00429090
mov ebp, 0x405
mov esi, ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], esi
mov byte [esp + 0x2468], 1
push 0x400
push ebx
lea ecx, [esp + 0x44]
call fcn.00431010
test eax, eax
je 0x434af3
lea esp, [esp]
add ebp, eax
add edi, eax
mov dword [esp + 0x28], ebp
cmp ebp, esi
jbe 0x434add
mov eax, esi
shr eax, 2
lea esi, [eax + esi + 0x20]
cmp ebp, esi
jbe 0x434abb
mov esi, ebp
push esi
push ebx
call fcn.004a4d6d
mov ebx, eax
add esp, 8
mov dword [esp + 0x24], ebx
test ebx, ebx
jne 0x434ad9
mov ecx, 0x4d76b4
call fcn.00429090
mov dword [esp + 0x2c], esi
lea eax, [ebx + edi]
push 0x400
push eax
lea ecx, [esp + 0x44]
call fcn.00431010
test eax, eax
jne 0x434aa0
xor eax, eax
mov dword [ebx + edi], eax
mov byte [ebx + edi + 4], al
mov eax, dword [esp + 0x2484]
cmp eax, 3
je 0x434c2b
test eax, eax
jne 0x434b21
mov edx, edi
mov esi, ebx
call fcn.004348a0
test al, al
jne 0x434c2b
cmp byte [ebx], 0
mov edi, ebx
je 0x434ed0
mov ebp, dword [esp + 0x20]
xor ecx, ecx
cmp byte [edi], 0xd
mov esi, edi
je 0x434b61
mov al, byte [esi]
cmp al, 0xa
je 0x434b61
test al, al
je 0x434b61
cmp byte [esp + 0x248c], 0
je 0x434b5b
cmp al, 0x2f
jne 0x434b5b
cmp byte [esi + 1], al
jne 0x434b5b
mov byte [esi], 0
mov ecx, esi
inc esi
cmp byte [esi], 0xd
jne 0x434b39
mov byte [esi], 0
mov eax, ecx
test ecx, ecx
jne 0x434b6c
mov eax, esi
dec eax
cmp eax, edi
jb 0x434b85
mov cl, byte [eax]
cmp cl, 0x20
je 0x434b7d
cmp cl, 9
jne 0x434b85
mov byte [eax], 0
dec eax
cmp eax, edi
jae 0x434b71
mov al, byte [edi]
test al, al
je 0x434c07
cmp byte [esp + 0x2488], 0
je 0x434bb5
cmp al, 0x22
jne 0x434bb5
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x434ba0
sub eax, edx
cmp byte [eax + edi - 1], 0x22
jne 0x434bb5
mov byte [eax + edi - 1], cl
inc edi
cmp dword [esp + 0x2484], 2
jne 0x434bc7
push edi
push edi
call dword [sym.imp.USER32.dll_OemToCharA]
cmp byte [esp + 0x2490], 0
je 0x434bff
cmp byte [edi], 0x25
jne 0x434bff
push 0x400
lea ecx, [esp + 0x1060]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x434bff
cmp eax, 0x400
jae 0x434bff
lea edx, [esp + 0x105c]
push edx
jmp 0x434c00
push edi
mov ecx, ebp
call fcn.0046b240
lea edi, [esi + 1]
lea ebx, [ebx]
mov al, byte [edi]
cmp al, 0xd
je 0x434c1a
cmp al, 0xa
jne 0x434c1d
inc edi
jmp 0x434c10
cmp byte [edi], 0
jne 0x434b30
jmp 0x434ed0
mov edi, ebp
shr edi, 1
inc edi
lea eax, [edi + edi]
push eax
call fcn.004a4c1c
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
test esi, esi
jne 0x434c54
test edi, edi
je 0x434c54
mov ecx, 0x4d76b4
call fcn.00429090
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov byte [esp + 0x2468], 2
lea ecx, [ebp - 1]
cmp ecx, 2
jbe 0x434ca6
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, pe_nt_image_headers32
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 0x434c80
xor eax, eax
mov edi, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov byte [esp + 0x2468], 3
cmp word [esi], ax
je 0x434e9e
xor ecx, ecx
cmp word [edi], 0xd
mov ebx, edi
je 0x434d05
movzx eax, word [ebx]
cmp ax, 0xa
je 0x434d05
test ax, ax
je 0x434d05
cmp byte [esp + 0x248c], 0
je 0x434cfc
cmp ax, 0x2f
jne 0x434cfc
cmp word [ebx + 2], ax
jne 0x434cfc
xor ecx, ecx
mov word [ebx], cx
mov ecx, ebx
add ebx, 2
cmp word [ebx], 0xd
jne 0x434cd1
xor edx, edx
mov word [ebx], dx
mov eax, ecx
test ecx, ecx
jne 0x434d12
mov eax, ebx
add eax, 0xfffffffe
cmp eax, edi
jb 0x434d3b
lea esp, [esp]
movzx ecx, word [eax]
cmp cx, 0x20
je 0x434d2f
cmp cx, 9
jne 0x434d3b
xor ecx, ecx
mov word [eax], cx
sub eax, 2
cmp eax, edi
jae 0x434d20
cmp word [edi], 0
je 0x434e7c
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x434d50
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 0x434dbf
add ecx, eax
mov dword [esp + 0x18], ecx
cmp ecx, dword [esp + 0x1c]
jbe 0x434dbf
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 0x434d97
mov esi, eax
mov edx, dword [esp + 0x14]
push esi
push edx
call fcn.004a4d6d
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x434db7
mov ecx, 0x4d76b4
call fcn.00429090
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
cmp byte [esp + 0x2488], 0
je 0x434de1
cmp word [edi], 0x22
jne 0x434de1
cmp word [edi + ebp*2 - 2], 0x22
jne 0x434de1
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.004731f0
cmp byte [esp + 0x2490], 0
je 0x434e6d
cmp word [edi], 0x25
jne 0x434e6d
mov ecx, dword [esp + 0x14]
push 0x400
lea eax, [esp + 0x1060]
xor edx, edx
push eax
push ecx
mov word [esp + 0x1c68], dx
lea ebp, [edx + 1]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov esi, eax
test esi, esi
je 0x434e6d
call fcn.0043ee90
test eax, eax
je 0x434e47
push 0x400
lea edx, [esp + 0x1c60]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
cmp esi, 0x400
jae 0x434e6d
test ebp, ebp
je 0x434e6d
cmp ebp, 0x400
jae 0x434e6d
lea eax, [esp + 0x1c5c]
push eax
lea ecx, [esp + 0x1060]
push ecx
jmp 0x434e73
mov edx, dword [esp + 0x14]
push edi
push edx
mov ecx, dword [esp + 0x28]
call fcn.0046aeb0
lea edi, [ebx + 2]
nop
movzx eax, word [edi]
cmp ax, 0xd
je 0x434e8f
cmp ax, 0xa
jne 0x434e94
add edi, 2
jmp 0x434e80
cmp word [edi], 0
jne 0x434cc7
mov byte [esp + 0x2468], 2
mov eax, dword [esp + 0x14]
test eax, eax
je 0x434eb7
push eax
call fcn.004a4cdf
add esp, 4
mov byte [esp + 0x2468], 1
mov eax, dword [esp + 0x30]
push eax
call fcn.004a4cdf
mov ebx, dword [esp + 0x28]
add esp, 4
mov byte [esp + 0x2468], 0
test ebx, ebx
je 0x434ee5
push ebx
call fcn.004a4cdf
add esp, 4
mov dword [esp + 0x2468], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.00430720
mov al, 1
mov ecx, dword [esp + 0x2460]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2448]
xor ecx, esp
call fcn.004a4b43
add esp, 0x2458
ret 0x24