Function at 0x419ee0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x5c9550]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x419eff
cmp dword [ebp + 0xc], 0
jne 0x419f06
xor eax, eax
jmp 0x41a1de
mov byte [ebp - 0x118], 0
push 0x103
push 0
lea eax, [ebp - 0x117]
push eax
call fcn.004550c0
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x438]
push ecx
call fcn.004550c0
add esp, 0xc
push 0x104
push 0
lea edx, [ebp - 0x220]
push edx
call fcn.004550c0
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x328]
push eax
call fcn.004550c0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push str.Path
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea edx, [ebp - 0x118]
mov dword [ebp - 0x444], edx
mov eax, dword [ebp - 0x444]
add eax, 1
mov dword [ebp - 0x448], eax
mov ecx, dword [ebp - 0x444]
mov dl, byte [ecx]
mov byte [ebp - 0x449], dl
add dword [ebp - 0x444], 1
cmp byte [ebp - 0x449], 0
jne 0x419f97
mov eax, dword [ebp - 0x444]
sub eax, dword [ebp - 0x448]
mov dword [ebp - 0x450], eax
mov ecx, dword [ebp - 0x450]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jle 0x41a083
cmp dword [ebp - 8], 0x104
jge 0x41a083
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x454], edx
mov eax, dword [ebp - 0x454]
add eax, 1
mov dword [ebp - 0x458], eax
mov ecx, dword [ebp - 0x454]
mov dl, byte [ecx]
mov byte [ebp - 0x459], dl
add dword [ebp - 0x454], 1
cmp byte [ebp - 0x459], 0
jne 0x419fff
mov eax, dword [ebp - 0x454]
sub eax, dword [ebp - 0x458]
mov dword [ebp - 0x460], eax
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x460]
cmp ecx, 0x104
jae 0x41a083
mov edx, dword [ebp + 0xc]
push edx
push 0x104
lea eax, [ebp - 0x118]
push eax
call fcn.004545cf
add esp, 0xc
push 8
push 0
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
je 0x41a083
mov eax, dword [ebp - 0x43c]
jmp 0x41a1de
cmp dword [ebp + 0x10], 0
jne 0x41a09b
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x464], eax
jmp 0x41a0a4
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x464], eax
mov ecx, dword [ebp - 0x464]
mov dword [ebp - 4], ecx
push 0x104
lea edx, [ebp - 0x438]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x438]
push edx
call fcn.00419e60
add esp, 8
lea eax, [ebp - 0x328]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00419e60
add esp, 8
mov dword [ebp - 0x32c], 0
cmp dword [ebp + 0x10], 0
je 0x41a124
push 0x5c
lea edx, [ebp - 0x220]
push edx
call fcn.0041a2d0
add esp, 8
mov dword [ebp - 0x32c], eax
mov eax, dword [ebp - 0x32c]
add eax, 1
mov dword [ebp - 0x32c], eax
jmp 0x41a140
lea ecx, [ebp - 0x328]
push ecx
lea edx, [ebp - 0x220]
push edx
call fcn.0041a2b0
add esp, 8
mov dword [ebp - 0x32c], eax
cmp dword [ebp - 0x32c], 0
je 0x41a1dc
mov eax, dword [ebp - 0x32c]
lea ecx, [ebp - 0x220]
sub eax, ecx
mov edx, 0x104
sub edx, eax
push edx
push 0
mov eax, dword [ebp - 0x32c]
push eax
call fcn.004550c0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x32c]
lea eax, [ebp - 0x220]
sub edx, eax
mov ecx, 0x104
sub ecx, edx
sub ecx, 1
push ecx
mov edx, dword [ebp - 0x32c]
push edx
call fcn.00453518
add esp, 0xc
push 8
push 0
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jne 0x41a1d4
push 8
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x440], eax
mov eax, dword [ebp - 0x440]
jmp 0x41a1de
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00452910
mov esp, ebp
pop ebp
ret