Function at 0x43a330
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x50f52c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.SystemRoot
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor esi, esi
mov ebx, 7
xor ecx, ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x240], esi
mov word [ebp - 0x250], cx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x43a3a0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x254]
call fcn.00401860
mov dword [ebp - 4], esi
push str.System32
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.00401b00
add esp, 0xc
mov byte [ebp - 4], 2
cmp dword [ebp - 0x23c], 8
jb 0x43a3fc
mov edx, dword [ebp - 0x250]
push edx
call fcn.004b29fa
add esp, 4
lea ecx, [ebp - 0x258]
push ecx
push 1
push 2
push 0x493e0
push 4
xor eax, eax
xor edx, edx
push 0x4e57dc
lea ecx, [ebp - 0x274]
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x240], esi
mov word [ebp - 0x250], ax
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x260], esi
mov word [ebp - 0x270], dx
call fcn.00401860
mov byte [ebp - 4], 3
add edi, 0x24c
push edi
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x29c]
push ecx
call fcn.0040a680
mov byte [ebp - 4], 4
push str.zlavscan.dll_
push eax
lea edx, [ebp - 0x254]
push edx
call fcn.00401b00
add esp, 0x18
mov byte [ebp - 4], 5
cmp dword [eax + 0x18], 8
jb 0x43a494
mov edi, dword [eax + 4]
jmp 0x43a497
lea edi, [eax + 4]
sub esp, 0x1c
mov ecx, esp
xor eax, eax
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], esi
mov word [ecx + 4], ax
mov eax, edi
lea edx, [eax + 2]
mov dword [ebp - 0x27c], esp
mov dword [ebp - 0x238], edx
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, si
jne 0x43a4c0
sub eax, dword [ebp - 0x238]
sar eax, 1
push eax
push edi
call fcn.00401860
mov byte [ebp - 4], 6
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x280], esp
push 0xc
xor eax, eax
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], esi
push str.regsvr32.exe
mov word [ecx + 4], ax
call fcn.00401860
mov byte [ebp - 4], bl
cmp dword [ebp - 0x21c], 8
mov edi, dword [ebp - 0x230]
jae 0x43a519
lea edi, [ebp - 0x230]
sub esp, 0x1c
mov ecx, esp
xor edx, edx
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], esi
mov eax, edi
mov word [ecx + 4], dx
lea edx, [eax + 2]
mov dword [ebp - 0x278], esp
mov dword [ebp - 0x238], edx
jmp 0x43a540
mov dx, word [eax]
add eax, 2
cmp dx, si
jne 0x43a540
sub eax, dword [ebp - 0x238]
sar eax, 1
push eax
push edi
call fcn.00401860
mov byte [ebp - 4], 8
mov byte [ebp - 4], 5
call fcn.00453920
mov byte [ebp - 4], 4
mov edi, 8
cmp dword [ebp - 0x23c], edi
jb 0x43a587
mov eax, dword [ebp - 0x250]
push eax
call fcn.004b29fa
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x240], esi
mov word [ebp - 0x250], cx
mov byte [ebp - 4], 3
cmp dword [ebp - 0x284], edi
jb 0x43a5b7
mov edx, dword [ebp - 0x298]
push edx
call fcn.004b29fa
add esp, 4
xor eax, eax
mov dword [ebp - 0x284], ebx
mov dword [ebp - 0x288], esi
mov word [ebp - 0x298], ax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x25c], edi
jb 0x43a5e7
mov ecx, dword [ebp - 0x270]
push ecx
call fcn.004b29fa
add esp, 4
xor edx, edx
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x260], esi
mov word [ebp - 0x270], dx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x21c], edi
jb 0x43a61a
mov eax, dword [ebp - 0x230]
push eax
call fcn.004b29fa
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x220], esi
mov word [ebp - 0x230], cx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b3057
mov esp, ebp
pop ebp
ret 8