Function at 0x43a380
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7c78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], eax
mov edx, dword [ecx + 0xea0]
mov dword [ebp - 0x20], eax
dec edx
cmp eax, edx
jg 0x43a63a
mov edx, dword [ecx + 0xe9c]
mov edi, dword [edx + eax*4]
test edi, edi
je 0x43a62e
mov edx, dword [edi + 0x20]
test edx, edx
je 0x43a62e
mov edx, dword [edi + 0x18]
test edx, edx
je 0x43a62e
lea eax, [edi + 4]
lea ecx, [ebp - 0x14]
push eax
call fcn.0048f3b6
push 1
push 0x22
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00487639
lea ecx, [ebp - 0x3c]
push 1
push ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00487a7f
mov esi, dword [ebp - 0x18]
mov eax, dword [eax]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x43a440
test cl, cl
je 0x43a43c
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x43a440
add eax, 2
add esi, 2
test cl, cl
jne 0x43a418
xor eax, eax
jmp 0x43a445
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [ebp - 0x3c]
sete bl
call fcn.0048f641
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0048f641
test bl, bl
je 0x43a489
lea eax, [ebp - 0x2c]
push 1
push eax
lea ecx, [ebp - 0x14]
call fcn.0048794a
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0048f77a
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0048f641
push 1
push 0x22
lea ecx, [ebp - 0x1c]
call fcn.00487639
lea ecx, [ebp - 0x24]
push 1
push ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00487a03
mov esi, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x43a4d4
test cl, cl
je 0x43a4d0
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x43a4d4
add eax, 2
add esi, 2
test cl, cl
jne 0x43a4ac
xor eax, eax
jmp 0x43a4d9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [ebp - 0x24]
sete bl
call fcn.0048f641
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0048f641
test bl, bl
je 0x43a523
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
mov eax, dword [eax - 8]
dec eax
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.00487a7f
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.0048f77a
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.0048f641
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0x25
jne 0x43a54d
lea edx, [ebp - 0x148]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x148]
lea ecx, [ebp - 0x14]
push eax
call fcn.0048f7ca
lea ecx, [ebp - 0x40]
push 2
push ecx
lea ecx, [ebp - 0x14]
call fcn.00487a7f
mov eax, dword [eax]
mov esi, 0x4d447c
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x43a58a
test cl, cl
je 0x43a586
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x43a58a
add eax, 2
add esi, 2
test cl, cl
jne 0x43a562
xor eax, eax
jmp 0x43a58f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [ebp - 0x40]
sete bl
call fcn.0048f641
test bl, bl
je 0x43a5f2
lea eax, [ebp - 0x28]
push 2
push eax
lea ecx, [ebp - 0x14]
call fcn.0048794a
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.0048f77a
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0048f641
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x30]
push ecx
push 0x4decc0
push edx
call fcn.0048f870
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.0048f77a
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0048f641
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x44], esp
push eax
call fcn.0048f3b6
call fcn.0040e7f0
add esp, 4
cmp eax, 1
je 0x43a61c
mov ecx, dword [edi + 0x20]
push 0x1f4
push ecx
call fcn.00423ef0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0048f641
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x38]
inc eax
jmp 0x43a3ac
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret