Function at 0x49c5d4
Capabilities:
Print debug messages
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x102c], ecx
mov dword [ebp - 0x1030], ecx
mov dword [ebp - 0x1024], ecx
mov dword [ebp - 0x1028], ecx
mov dword [ebp - 0x1018], ecx
mov dword [ebp - 0x101c], ecx
mov dword [ebp - 0x1020], ecx
mov dword [ebp - 0x1014], ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f7c
xor eax, eax
push ebp
push 0x49c871
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x49c888
call fcn.0040d9a8
test eax, eax
jne 0x49c666
mov edx, dword [ebp - 4]
mov eax, 0x49c894
call fcn.0040d9a8
test eax, eax
jne 0x49c666
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x49c8a0
call fcn.00404dd8
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404b20
mov edx, dword [esi]
mov eax, 0x49c888
call fcn.0040d9a8
mov ebx, eax
mov edx, dword [esi]
mov eax, 0x49c8b4
call fcn.0040d9a8
mov edi, eax
call fcn.0049f8f0
test al, al
jne 0x49c73d
lea eax, [ebp - 8]
push eax
mov ecx, edi
sub ecx, ebx
inc ecx
mov eax, dword [esi]
mov edx, ebx
call fcn.00404fec
lea eax, [ebp - 0x1014]
mov ecx, dword [ebp - 8]
mov edx, 0x49c8c0
call fcn.00404dd8
mov eax, dword [ebp - 0x1014]
call fcn.00404f8c
push eax
call sub.kernel32.dll_OutputDebugStringA
push 0x49c8cc
mov eax, dword [ebp - 8]
call fcn.00404f8c
push eax
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x49c73d
lea eax, [ebp - 0x101c]
call fcn.0049fe6c
mov eax, dword [ebp - 0x101c]
mov dl, byte [eax]
lea eax, [ebp - 0x1018]
call fcn.00404cb4
push dword [ebp - 0x1018]
push 0x49c8e4
lea eax, [ebp - 0x1020]
push eax
mov eax, dword [ebp - 4]
call fcn.00404d8c
mov ecx, eax
lea edx, [edi + 1]
mov eax, dword [ebp - 4]
call fcn.00404fec
push dword [ebp - 0x1020]
mov eax, esi
mov edx, 3
call fcn.00404e4c
mov edx, dword [esi]
mov eax, 0x49c888
call fcn.0040d9a8
mov ebx, eax
mov edx, dword [esi]
mov eax, 0x49c8b4
call fcn.0040d9a8
mov edi, eax
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x49c831
cmp ebx, edi
jge 0x49c831
lea eax, [ebp - 8]
push eax
mov ecx, edi
sub ecx, ebx
inc ecx
mov eax, dword [esi]
mov edx, ebx
call fcn.00404fec
push 0x1001
lea eax, [ebp - 0x100d]
push eax
push 0x49c8fc
lea eax, [ebp - 0x1028]
push eax
mov ecx, edi
sub ecx, ebx
sub ecx, 2
lea edx, [ebx + 2]
mov eax, dword [esi]
call fcn.00404fec
push dword [ebp - 0x1028]
push 0x49c8fc
lea eax, [ebp - 0x1024]
mov edx, 3
call fcn.00404e4c
mov eax, dword [ebp - 0x1024]
call fcn.00404f8c
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov al, byte [0x49c900]
push eax
lea eax, [ebp - 0x102c]
push eax
lea eax, [ebp - 0x1030]
lea edx, [ebp - 0x100d]
mov ecx, 0x1001
call fcn.00404d3c
mov ecx, dword [ebp - 0x1030]
mov eax, dword [esi]
mov edx, dword [ebp - 8]
call fcn.0040e14c
mov edx, dword [ebp - 0x102c]
mov eax, esi
call fcn.00404b20
mov edx, dword [esi]
mov eax, 0x49c888
call fcn.0040d9a8
mov ebx, eax
mov edx, dword [esi]
mov eax, 0x49c8b4
call fcn.0040d9a8
mov edi, eax
inc dword [ebp - 0xc]
test ebx, ebx
je 0x49c846
cmp ebx, edi
jge 0x49c846
cmp dword [ebp - 0xc], 0x3e8
jl 0x49c763
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c878
lea eax, [ebp - 0x1030]
mov edx, 8
call fcn.00404af0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404af0
ret