Function at 0x419840
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fcdcf
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x52c1c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x29c], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x298], 1
call fcn.004d8600
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x504964
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp word [ebp - 0x218], ax
jne 0x4198fd
xor ecx, ecx
jmp 0x419915
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419906
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00422560
push 7
push str._bmsoft
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 1
call fcn.00422040
mov esi, dword [ebp - 0x234]
lea ecx, [ebp - 0x248]
mov edx, dword [ebp - 0x248]
lea edi, [ebp - 0x248]
mov eax, dword [ebp - 0x238]
cmp esi, 8
mov dword [ebp - 0x294], 0x4db90f
cmovae ecx, edx
cmovae edi, edx
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x248]
cmovae ecx, edx
lea edx, [ebp - 0x294]
push edx
push edi
push eax
push ecx
call fcn.00403f20
xor eax, eax
mov dword [ebp - 0x24c], 7
add esp, 0x10
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
push eax
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], eax
cmp dword [ecx + 0x14], 8
jb 0x4199cb
mov eax, dword [ecx]
jmp 0x4199cd
mov eax, ecx
push 0xd
xor edx, edx
push str.filetrace.ini
mov word [eax], dx
call fcn.00422560
lea eax, [ebp - 0x260]
push eax
call fcn.004b7020
add esp, 8
mov ecx, esp
mov dword [ebp - 0x294], esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x419a0d
mov eax, dword [ecx]
jmp 0x419a0f
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x260]
push edx
push eax
call fcn.004223a0
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x2a0], esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x419a4a
mov eax, dword [ecx]
jmp 0x419a4c
mov eax, ecx
xor edx, edx
push edx
push 0x502b5c
mov word [eax], dx
call fcn.00422560
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x419a7d
mov eax, dword [ecx]
jmp 0x419a7f
mov eax, ecx
push 0x12
xor edx, edx
push str.FileAttributeSZYH
mov word [eax], dx
call fcn.00422560
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 2
push eax
call fcn.0041b3b0
add esp, 0x4c
mov edx, eax
cmp dword [edx + 0x14], 8
mov byte [ebp - 4], 5
jb 0x419ab1
mov edx, dword [edx]
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [edx], ax
jne 0x419ad7
xor ecx, ecx
jmp 0x419aef
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419ae0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.00422560
mov eax, dword [ebp - 0x27c]
mov byte [ebp - 4], 7
cmp eax, 8
jb 0x419b1e
inc eax
lea ecx, [ebp - 0x290]
push eax
push dword [ebp - 0x290]
call fcn.004237a0
mov ecx, dword [ebp - 0x220]
xor eax, eax
mov dword [ebp - 0x27c], 7
mov dword [ebp - 0x280], 0
mov word [ebp - 0x290], ax
test ecx, ecx
jne 0x419b57
push str.error:skip_dir_empty.
call fcn.0041e1f0
add esp, 4
jmp 0x419c18
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x230]
mov edx, dword [ebp - 0x230]
lea edi, [ebp - 0x230]
cmp esi, 8
mov dword [ebp - 0x294], 0x4db90f
cmovae eax, edx
cmovae edi, edx
lea eax, [eax + ecx*2]
lea ecx, [ebp - 0x230]
cmovae ecx, edx
lea edx, [ebp - 0x294]
push edx
push edi
push eax
push ecx
call fcn.00403f20
add esp, 0x10
mov dword [ebp - 0x264], 7
xor eax, eax
mov dword [ebp - 0x268], 0
mov word [ebp - 0x278], ax
lea ecx, [ebp - 0x278]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.004223a0
cmp dword [ebp - 0x264], 8
lea eax, [ebp - 0x278]
push ebx
cmovae eax, dword [ebp - 0x278]
push 0x7c
push eax
mov byte [ebp - 4], 8
call fcn.00430e50
mov eax, dword [ebp - 0x264]
add esp, 0xc
mov byte [ebp - 4], 7
cmp eax, 8
jb 0x419c18
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.004237a0
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.0042c380
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x419c44
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.004237a0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x220], 0
cmp eax, 8
jb 0x419c7f
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.004237a0
mov ecx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
cmp ecx, 8
jb 0x419cba
inc ecx
push ecx
push dword [ebp - 0x248]
lea ecx, [ebp - 0x248]
call fcn.004237a0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bedf5
mov esp, ebp
pop ebp
ret