Function at 0x4529f3
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x2134]
mov eax, 0x21b0
call fcn.00468c00
mov eax, dword [0x488548]
xor eax, ebp
mov dword [ebp + 0x2130], eax
push ebx
push esi
mov esi, dword [ebp + 0x2140]
push edi
mov edi, dword [ebp + 0x213c]
xor ebx, ebx
mov dword [esi + 0x4cc], 0xa
mov dword [esi + 0x4bc], ebx
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x34], ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1400000
push ebx
push str.X_wsiz
mov dword [esi + 0x4c0], eax
call fcn.004254c4
mov dword [esi + 0x4c4], eax
mov eax, dword [esi + 0x4dc]
mov dword [esi + 0x550], edi
mov dword [esi + 0x4c8], ebx
mov dword [ebp - 0x4c], ebx
cmp eax, ebx
jne 0x452acf
lea edx, [esi + 0xc]
lea ecx, [edi + 0x584]
mov dword [ebp - 0x38], edx
mov edx, dword [ebp - 0x38]
mov dx, word [edx]
cmp dx, word [ecx]
jne 0x452ab3
cmp dx, bx
je 0x452aaf
mov edx, dword [ebp - 0x38]
mov dx, word [edx + 2]
mov word [ebp - 0x3a], dx
cmp dx, word [ecx + 2]
jne 0x452ab3
add dword [ebp - 0x38], 4
add ecx, 4
cmp dx, bx
jne 0x452a82
xor ecx, ecx
jmp 0x452ab8
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
jne 0x452acf
mov ecx, dword [edi + 0x1d20]
cmp ecx, 5
jl 0x452acf
cmp ecx, 8
jg 0x452acf
xor eax, eax
inc eax
neg eax
sbb eax, eax
and eax, 0xfffffff0
add eax, 0x5b
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x452afb
lea edx, [ebp + 0x17d0]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
cmp cx, bx
jne 0x452aeb
jmp 0x452b12
push 0x80
lea eax, [ebp + 0x17d0]
push eax
push 0x258
call dword [sym.imp.PPLIB32W.DLL__MakeTempEntry_12]
push ebx
push 0x8000000
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp + 0x17d0]
push eax
call dword [sym.imp.PPLIB32W.DLL__CreateFileL_28]
mov dword [ebp - 0x54], eax
cmp eax, 0xffffffff
jne 0x452b44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
jmp 0x452ebb
push dword [esi + 0x4d4]
lea eax, [ebp - 0x54]
push eax
call fcn.00425783
test dword [ebp - 0x44], 0x400
jne 0x452c56
push dword [ebp - 0x3c]
lea ecx, [edi + 0x584]
push ecx
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.PPLIB32W.DLL__VFSFixPath_16]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.PPLIB32W.DLL__GetFileAttributesL_4]
cmp eax, 0xffffffff
je 0x452bc3
push 6
push str._Base
lea eax, [ebp - 0x54]
push eax
call dword [ebp - 0x50]
lea eax, [ebp - 0x30]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x452b9b
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x54]
push eax
call dword [ebp - 0x50]
push 4
push str.1_r_n
lea eax, [ebp - 0x54]
push eax
call dword [ebp - 0x50]
xor eax, eax
cmp dword [esi + 0x4dc], ebx
setne al
xor ecx, ecx
cmp dword [esi + 0x55c], ebx
setne cl
xor edx, edx
cmp dword [esi + 0x558], ebx
mov eax, dword [eax*4 + 0x4882d8]
setne dl
mov ecx, dword [ecx*4 + 0x4882d8]
mov edx, dword [edx*4 + 0x4882d8]
mov dword [ebp - 0x40], edx
xor edx, edx
cmp dword [esi + 0x554], ebx
setne dl
mov edx, dword [edx*4 + 0x4882d8]
mov dword [ebp - 0x38], edx
lea edx, [esi + 0xec4]
push edx
lea edx, [esi + 0xa14]
push edx
lea edx, [esi + 0x564]
push edx
lea edx, [esi + 0xc]
push edx
push eax
push ecx
push dword [ebp - 0x40]
lea eax, [ebp - 0x30]
push dword [ebp - 0x38]
push dword [esi + 0x560]
push str._Search_type:_d__marked:_s__dir:_s__subdir:_s__vfs:_s__path:__s___mask:__s___mask2:__s___text:__s__r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x2c
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x54]
push eax
call dword [ebp - 0x50]
cmp dword [esi + 0x560], 5
jne 0x452cc4
lea eax, [esi + 0x564]
mov dword [ebp - 0x7c], 0x452347
mov dword [ebp - 0x78], str.Where_is
mov dword [ebp - 0x74], 0x4739e8
cmp word [eax], bx
jne 0x452c85
lea eax, [esi + 0xec4]
or dword [ebp - 0x58], 0xffffffff
inc dword [edi + 0x24]
mov dword [ebp - 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x6c], eax
push ebx
lea eax, [ebp - 0x60]
push eax
push 0xa
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x5c], 0x804
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], esi
call dword [sym.imp.PPLIB32W.DLL__CallModule_16]
push edi
call fcn.00450c9d
jmp 0x452e62
mov ebx, dword [sym.imp.PPLIB32W.DLL__MakeFN_REGEXP_8]
lea ecx, [esi + 0x564]
lea eax, [esi + 0x4f0]
push ecx
push eax
call ebx
lea ecx, [esi + 0xa14]
lea eax, [esi + 0x510]
push ecx
push eax
call ebx
and dword [esi + 0x4e0], 0
lea eax, [esi + 0xec4]
movzx ecx, word [eax]
test cx, cx
jne 0x452d08
and dword [esi + 0x560], 0
jmp 0x452d38
cmp cx, 0x2f
jne 0x452d38
push eax
lea eax, [ebp - 0x30]
push str.o:__s
push eax
mov dword [esi + 0x4e0], 1
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0x530]
push eax
call ebx
cmp dword [esi + 0x554], 0
je 0x452ede
lea eax, [ebp - 0x40]
push eax
push edi
call fcn.00424050
jmp 0x452e24
lea ecx, [eax + 0x50]
cmp word [ecx], 0x2e
mov dword [ebp - 0x38], ecx
jne 0x452d72
cmp word [eax + 0x52], 0x2e
jne 0x452d72
cmp word [eax + 0x54], 0
je 0x452e24
lea ebx, [eax + 0x24]
test byte [ebx], 0x10
je 0x452db1
push dword [ebp - 0x3c]
lea eax, [edi + 0xa34]
push eax
push ecx
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.PPLIB32W.DLL__VFSFixPath_16]
cmp dword [ebp - 0x3c], 0x5b
lea eax, [ebp - 0x54]
push eax
push esi
lea eax, [ebp - 0x30]
push eax
jne 0x452da5
call fcn.004525d1
jmp 0x452daa
call fcn.0045281a
mov dword [ebp - 0x34], eax
test eax, eax
jmp 0x452e22
lea eax, [esi + 0x4f0]
push eax
push ebx
call dword [sym.imp.PPLIB32W.DLL__FinddataRegularExpression_8]
test eax, eax
je 0x452e14
lea eax, [esi + 0x510]
push eax
push ebx
call dword [sym.imp.PPLIB32W.DLL__FinddataRegularExpression_8]
test eax, eax
je 0x452e14
push dword [ebp - 0x3c]
lea eax, [edi + 0xa34]
push eax
push dword [ebp - 0x38]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.PPLIB32W.DLL__VFSFixPath_16]
cmp word [esi + 0xec4], 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x48], ebx
push eax
je 0x452e09
push esi
call fcn.00452538
jmp 0x452e14
inc dword [esi + 0x4bc]
call fcn.004520cb
push dword [ebp - 0x38]
push esi
call fcn.00451792
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x452e36
lea eax, [ebp - 0x40]
push eax
push edi
call fcn.00424095
test eax, eax
jne 0x452d54
cmp dword [esi + 0x4e0], 0
mov ebx, dword [sym.imp.PPLIB32W.DLL__FreeFN_REGEXP_4]
je 0x452e4e
lea eax, [esi + 0x530]
push eax
call ebx
lea eax, [esi + 0x510]
push eax
call ebx
lea eax, [esi + 0x4f0]
push eax
call ebx
xor ebx, ebx
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x17
push edi
call fcn.00424970
cmp dword [esi + 0x4d8], ebx
je 0x452ebb
push ebx
lea eax, [ebp + 0x17d0]
push eax
push edi
call fcn.0042930e
lea eax, [edi + 0x1870]
cmp word [eax], bx
je 0x452eaa
lea edx, [edi + 0x1394]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
cmp cx, bx
jne 0x452e9c
push str.whereis
push 1
push edi
push dword [edi + 0xc]
call dword [sym.imp.PPLIB32W.DLL__ActionInfo_16]
push esi
call fcn.0045241c
mov ecx, dword [ebp + 0x2130]
mov eax, dword [ebp - 0x34]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046890b
add ebp, 0x2134
leave
ret 8
push 0xc00
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ebx, [ebp - 0x30]
push 0x3b
push ebx
call fcn.0046891a
pop ecx
pop ecx
mov dword [ebp - 0x40], eax
test eax, eax
je 0x452f0a
xor ecx, ecx
mov word [eax], cx
push dword [ebp - 0x3c]
lea eax, [edi + 0x584]
push eax
push ebx
lea eax, [ebp + 0x1c80]
push eax
call dword [sym.imp.PPLIB32W.DLL__VFSFixPath_16]
cmp dword [esi + 0x560], 2
lea eax, [ebp - 0x54]
push eax
push esi
lea eax, [ebp + 0x1c80]
push eax
jne 0x452f3e
call fcn.004520e9
jmp 0x452f50
cmp dword [ebp - 0x3c], 0x5b
jne 0x452f4b
call fcn.004525d1
jmp 0x452f50
call fcn.0045281a
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
test ebx, ebx
je 0x452e36
test eax, eax
jne 0x452e36
add ebx, 2
jmp 0x452ef4