Function at 0x402110
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4385cd
mov eax, dword fs:[0]
push eax
sub esp, 0x87c
mov eax, dword [0x450068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0x208
mov dword [ebp - 0x870], eax
lea eax, [ebp - 0x830]
push 0
push eax
mov dword [ebp - 0x880], edi
call fcn.0041d060
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0041d060
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0041d060
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0041d060
add esp, 0x2c
mov dword [ebp - 0x874], 0
xorps xmm0, xmm0
lea eax, [ebp - 0x874]
lea ecx, [ebp - 0x850]
movups xmmword [ebp - 0x850], xmm0
push eax
movups xmmword [ebp - 0x840], xmm0
call fcn.00402c30
push 0x104
lea eax, [ebp - 0x628]
mov dword [ebp - 4], 0
push eax
push str.SYSTEMDRIVE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, dword [sym.imp.USER32.dll_CharLowerBuffW]
test eax, eax
je 0x40261d
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x628]
push eax
call esi
xor eax, eax
mov dword [ebp - 0x858], 0
lea ecx, [ebp - 0x628]
mov dword [ebp - 0x854], 7
mov word [ebp - 0x868], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402234
sub ecx, edx
lea eax, [ebp - 0x628]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x868]
call fcn.00402cf0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x868]
push dword [ebp - 0x870]
lea ecx, [ebp - 0x850]
push eax
lea eax, [ebp - 0x87c]
push eax
call fcn.00403250
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x854]
cmp edx, 8
jb 0x4022bd
mov ecx, dword [ebp - 0x868]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4022b3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4028aa
push edx
push ecx
call fcn.0041aec9
add esp, 8
push str.windows
lea eax, [ebp - 0x628]
push eax
push str._ls_ls
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00413080
add esp, 0x14
mov dword [ebp - 0x858], 0
xor eax, eax
mov dword [ebp - 0x854], 7
lea ecx, [ebp - 0x218]
mov word [ebp - 0x868], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402310
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x868]
call fcn.00402cf0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x868]
push dword [ebp - 0x870]
lea ecx, [ebp - 0x850]
push eax
lea eax, [ebp - 0x87c]
push eax
call fcn.00403250
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x854]
cmp edx, 8
jb 0x402399
mov ecx, dword [ebp - 0x868]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40238f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4028af
push edx
push ecx
call fcn.0041aec9
add esp, 8
push str.windows_temp
lea eax, [ebp - 0x628]
push eax
push str._ls_ls
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00413080
add esp, 0x14
mov dword [ebp - 0x858], 0
xor eax, eax
mov dword [ebp - 0x854], 7
lea ecx, [ebp - 0x218]
mov word [ebp - 0x868], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4023e4
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x868]
call fcn.00402cf0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x868]
push dword [ebp - 0x870]
lea ecx, [ebp - 0x850]
push eax
lea eax, [ebp - 0x87c]
push eax
call fcn.00403250
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x854]
cmp edx, 8
jb 0x40246d
mov ecx, dword [ebp - 0x868]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402463
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4028b4
push edx
push ecx
call fcn.0041aec9
add esp, 8
push str.windows_system32
lea eax, [ebp - 0x628]
push eax
push str._ls_ls
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00413080
add esp, 0x14
mov dword [ebp - 0x858], 0
xor eax, eax
mov dword [ebp - 0x854], 7
lea ecx, [ebp - 0x218]
mov word [ebp - 0x868], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4024c0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x868]
call fcn.00402cf0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x868]
push dword [ebp - 0x870]
lea ecx, [ebp - 0x850]
push eax
lea eax, [ebp - 0x87c]
push eax
call fcn.00403250
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x854]
cmp edx, 8
jb 0x402549
mov ecx, dword [ebp - 0x868]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40253f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4028b9
push edx
push ecx
call fcn.0041aec9
add esp, 8
push str.windows_syswow64
lea eax, [ebp - 0x628]
push eax
push str._ls_ls
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00413080
add esp, 0x14
mov dword [ebp - 0x858], 0
xor eax, eax
mov dword [ebp - 0x854], 7
lea ecx, [ebp - 0x218]
mov word [ebp - 0x868], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402594
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x868]
call fcn.00402cf0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x868]
push dword [ebp - 0x870]
lea ecx, [ebp - 0x850]
push eax
lea eax, [ebp - 0x87c]
push eax
call fcn.00403250
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x854]
cmp edx, 8
jb 0x40261d
mov ecx, dword [ebp - 0x868]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402613
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4028be
push edx
push ecx
call fcn.0041aec9
add esp, 8
push edi
mov edi, dword [sym.imp.ODBC32.dll_SQLFetch]
call edi
test ax, ax
jne 0x402882
nop
push 0
push 0x208
lea eax, [ebp - 0x830]
push eax
push 0xfffffffffffffff8
push 1
push dword [ebp - 0x880]
call dword [sym.imp.ODBC32.dll_SQLGetData]
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00422c2f
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x420]
push eax
call esi
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x4026aa
lea eax, [ebp - 0x830]
push eax
push str.File_path__s_cant_removed_file_name_n
call fcn.004114b0
add esp, 8
jmp 0x402871
xor eax, eax
mov dword [ebp - 0x858], 0
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x854], 7
mov word [ebp - 0x868], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4026d0
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x868]
call fcn.00402cf0
mov esi, dword [ebp - 0x84c]
lea eax, [ebp - 0x868]
push eax
lea eax, [ebp - 0x874]
push eax
lea ecx, [ebp - 0x850]
call fcn.00402ad0
cmp dword [ebp - 0x874], esi
mov edx, dword [ebp - 0x854]
sete al
mov byte [ebp - 0x869], al
cmp edx, 8
jb 0x402766
mov ecx, dword [ebp - 0x868]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402756
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4028aa
push edx
push ecx
call fcn.0041aec9
mov al, byte [ebp - 0x869]
add esp, 8
test al, al
je 0x40286b
sub esp, 0x18
lea edx, [ebp - 0x420]
mov ecx, esp
lea esi, [edx + 2]
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402790
sub edx, esi
lea eax, [ebp - 0x420]
sar edx, 1
push edx
push eax
call fcn.00402cf0
mov edx, dword [ebp - 0x870]
lea ecx, [ebp - 0x830]
call fcn.00401d10
add esp, 0x18
mov dword [ebp - 0x858], 0
xor eax, eax
mov dword [ebp - 0x854], 7
lea ecx, [ebp - 0x420]
mov word [ebp - 0x868], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4027e6
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x868]
call fcn.00402cf0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x868]
push dword [ebp - 0x878]
lea ecx, [ebp - 0x850]
push eax
lea eax, [ebp - 0x888]
push eax
call fcn.00403250
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x854]
cmp edx, 8
jb 0x40286b
mov ecx, dword [ebp - 0x868]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402861
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4028aa
push edx
push ecx
call fcn.0041aec9
add esp, 8
mov esi, dword [sym.imp.USER32.dll_CharLowerBuffW]
push dword [ebp - 0x880]
call edi
test ax, ax
je 0x402630
lea ecx, [ebp - 0x850]
call fcn.00401c20
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret
call fcn.00422e9e
call fcn.00422e9e
call fcn.00422e9e
call fcn.00422e9e
call fcn.00422e9e
int3