Function at 0x37192869
Capabilities:
Set current directory

Disassembly:
mov eax, 0x3719cb1c
call fcn.3719c6c0
sub esp, 0x24c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, 0x104
mov dword [ebp - 0x10], eax
push edi
lea eax, [ebp - 0x258]
push 0
mov ebx, ecx
push eax
call sub.MSVCRT.dll_memset
mov esi, str._path_
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0x14
test eax, eax
je 0x371928e5
push esi
call sub.MSVCRT.dll_strlen
add eax, dword [ebp + 8]
pop ecx
push eax
lea eax, [ebx + 0x414]
push eax
push str.file:___s_s
lea eax, [ebp - 0x258]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea ecx, [ebp - 0x258]
jmp 0x371929d2
mov esi, str.RUN:__
push 6
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x3719295d
push edi
push eax
lea eax, [ebp - 0x154]
push eax
call sub.MSVCRT.dll_memset
push esi
call sub.MSVCRT.dll_strlen
add eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x154]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x154]
push 0x20
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
add esp, 0x20
test esi, esi
je 0x3719293d
and byte [esi], 0
inc esi
add ebx, 0x414
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x154]
push esi
push eax
call fcn.37197935
pop ecx
jmp 0x37192b05
push 0x3719f098
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
je 0x371929cf
mov eax, dword [ebx + 0x268]
mov eax, dword [ebx + eax*4 + 0xe78]
mov esi, dword [eax + 0x104]
test esi, esi
je 0x37192b06
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
inc eax
push eax
push dword [ebp + 8]
push esi
call sub.MSVCRT.dll_memcpy
mov ax, word [ebx + 0x268]
add esp, 0x10
add ax, 0x7503
mov ecx, ebx
push eax
call fcn.37191f92
lea eax, [esi + 0x400]
push 0x400
push eax
push esi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x37192b06
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x174]
xor edi, edi
cmp eax, edi
je 0x37192b06
cmp dword [eax + 0x1c], edi
push ecx
je 0x37192b00
lea ecx, [ebp + 8]
call fcn.371947fb
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], edi
call fcn.37194999
mov ecx, dword [ebp + 8]
cmp ecx, edi
je 0x37192a0f
call fcn.3719494c
mov dword [ebp + 8], edi
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x20]
push eax
call esi
lea eax, [ebp - 0x30]
push eax
call esi
lea eax, [ebp - 0x40]
push eax
call esi
cmp dword [ebp + 0xc], edi
mov byte [ebp - 4], 5
mov word [ebp - 0x20], di
mov word [ebp - 0x30], di
je 0x37192a72
push str._BLANK
lea ecx, [ebp + 0xc]
call fcn.371947fb
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 6
call fcn.37194a12
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 5
cmp ecx, edi
je 0x37192a65
call fcn.3719494c
mov dword [ebp + 0xc], edi
mov dword [ebp - 0x38], 1
mov word [ebp - 0x40], 3
mov esi, dword [ebx + 0x174]
add esi, 0x1c
cmp dword [esi], edi
jne 0x37192a89
push 0x80004003
call fcn.3719c523
lea ecx, [ebp - 0x20]
mov esi, dword [esi]
push ecx
lea ecx, [ebp - 0x20]
push ecx
mov eax, dword [esi]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x50]
push ecx
push esi
call dword [eax + 0xd0]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 4
call esi
cmp eax, edi
jge 0x37192ac2
push eax
call fcn.3719c523
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 3
push eax
call esi
cmp eax, edi
jge 0x37192ad6
push eax
call fcn.3719c523
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
call esi
cmp eax, edi
jge 0x37192aea
push eax
call fcn.3719c523
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x50]
push eax
call esi
cmp eax, edi
jge 0x37192b06
push eax
call fcn.3719c523
jmp 0x37192b06
call fcn.3719b6b4
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8