Function at 0x4253a0
Capabilities:
Parse pe header
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44c
mov eax, dword [0x70e00c]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esp + 0x18], esi
test esi, esi
jne 0x4253eb
call fcn.0060a381
mov dword [eax], 0xffffffea
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.004aa758
mov esp, ebp
pop ebp
ret
call fcn.004352a0
mov dword [esp + 0x10], eax
test eax, eax
jne 0x42541a
call fcn.0060a381
mov dword [eax], 0xfffffff2
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.004aa758
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
shl eax, 3
push eax
call fcn.0060a1f7
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x425442
call fcn.0060a381
mov dword [eax], 0xfffffff4
jmp 0x42576b
mov eax, dword [esi]
shl eax, 3
push eax
push 0
push ebx
call fcn.005f46f0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x4c], eax
mov eax, dword [esi]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x44]
push 0x6ea880
push eax
mov dword [esp + 0x58], ebx
call dword [0x72c4e0]
lea eax, [esp + 0x4c]
mov edx, str.Driver
push eax
push 0x425260
lea ecx, [esp + 0x4c]
call fcn.00424e70
mov edi, eax
add esp, 8
test edi, edi
jns 0x4254a4
call fcn.0060a381
mov dword [eax], edi
xor edi, edi
jmp 0x425762
imul eax, dword [esi], 0x220
push eax
call fcn.0060a1f7
mov edi, eax
add esp, 4
mov dword [esp + 0x44], edi
test edi, edi
jne 0x4254cd
call fcn.0060a381
mov dword [eax], 0xfffffff4
jmp 0x425762
imul eax, dword [esi], 0x220
push eax
push 0
push edi
call fcn.005f46f0
add esp, 0xc
lea eax, [esp + 0x98]
push eax
call dword [0x717218]
xor ebx, ebx
add esp, 4
mov ecx, edi
mov dword [esp + 0x14], ecx
cmp dword [esi], ebx
jle 0x425749
mov esi, dword [esp + 0x10]
add edi, 0x18
add esi, 0x14
nop word [eax + eax]
mov eax, dword [esi - 0x10]
cmp eax, dword [esp + 0x140]
jb 0x425730
ja 0x425532
mov eax, dword [esi - 0x14]
cmp eax, dword [esp + 0x13c]
jbe 0x425730
mov dword [ecx], 1
mov eax, dword [esi - 0x14]
mov dword [edi - 0x14], eax
mov eax, dword [esi - 0x10]
mov dword [edi - 0x10], eax
mov eax, dword [esi - 0xc]
push 0x5c
push esi
mov dword [edi - 0xc], eax
call fcn.005fa980
add esp, 8
test eax, eax
jne 0x425592
push esi
push str.__SystemRoot__System32drivers_s
lea eax, [esp + 0x250]
push 0x200
push eax
call fcn.004176d0
add esp, 0x10
mov byte [esp + 0x447], 0
lea eax, [esp + 0x248]
push 0x1ff
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
jmp 0x4255ba
push 0x1ff
push edi
push esi
push 0
push 0
push 0
call fcn.00402d30
add esp, 0x18
test eax, eax
jns 0x4255ba
push 0x1ff
push esi
push edi
call fcn.00601480
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov byte [edi + 0x1ff], 0
mov eax, dword [ecx + ebx*8]
mov dword [edi + 0x200], eax
mov eax, dword [ecx + ebx*8 + 4]
mov dword [edi + 0x204], eax
mov eax, dword [esi - 8]
mov dword [edi - 8], eax
mov eax, dword [esi - 4]
mov dword [edi - 4], eax
mov eax, dword [esi - 8]
or eax, dword [esi - 4]
jne 0x42571c
mov ecx, dword [0x73c8fc]
test ecx, ecx
je 0x42571c
mov dword [esp + 0x20], eax
mov eax, dword [esi - 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [esi - 0x10]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x58]
push 0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x40]
push eax
push 0x1c
lea eax, [esp + 0x2c]
mov dword [esp + 0x3c], 0
push eax
push 0x1c
push eax
push 0x228048
push ecx
mov dword [esp + 0x54], 0x40
mov dword [esp + 0x58], 0
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x42571c
cmp dword [esp + 0x3c], 0
jl 0x42571c
cmp dword [esp + 0x20], 0
jl 0x42571c
mov eax, 0x5a4d
cmp word [esp + 0x58], ax
jne 0x42571c
mov edx, dword [0x73c8fc]
test edx, edx
je 0x42571c
mov eax, dword [esp + 0x94]
xor ecx, ecx
add eax, dword [esi - 0x14]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x150]
adc ecx, dword [esi - 0x10]
push 0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x44]
push eax
push 0x1c
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0
push eax
push 0x1c
push eax
push 0x228048
push edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0xf8
mov dword [esp + 0x58], 1
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x42571c
cmp dword [esp + 0x40], 0
jl 0x42571c
cmp dword [esp + 0x20], 0
jl 0x42571c
cmp dword [esp + 0x150], 0x4550
jne 0x42571c
mov eax, dword [esp + 0x178]
xor ecx, ecx
add eax, dword [esi - 0x14]
adc ecx, dword [esi - 0x10]
mov dword [edi - 8], eax
mov dword [edi - 4], ecx
mov ecx, dword [esp + 0x14]
add ecx, 0x220
add edi, 0x220
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x18]
inc ebx
add esi, 0x118
cmp ebx, dword [eax]
jl 0x425510
mov edi, dword [esp + 0x44]
mov esi, eax
mov ebx, dword [esp + 0x1c]
sub ecx, edi
mov eax, 0x78787879
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esi], eax
push ebx
call fcn.005fa0fb
add esp, 4
push dword [esp + 0x10]
call fcn.005fa0fb
mov ecx, dword [esp + 0x458]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004aa758
mov esp, ebp
pop ebp
ret