Function at 0x40d7a0
Capabilities:
Set current directory

Disassembly:
mov eax, dword [0x4236e4]
sub esp, 0x208
push ebx
xor ebx, ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll_time]
cmp eax, ebx
push edi
jne 0x40d87b
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
call fcn.0040d630
add esp, 4
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.RsLog.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [0x4236e4], eax
je 0x40d834
push str.QueryModuleObj
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40d815
call eax
mov dword [0x4236e0], eax
push 0x423760
mov dword [0x423754], ebx
mov dword [0x423758], ebx
call esi
push 0x42375c
call esi
add esp, 8
jmp 0x40d86f
push 0x423658
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xfec
push str.C:TEMPRisingAutoLinkProduct2005AppPersonalRavMonRavMonDRavMonCoreRavMonCore.cpp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x41a1d4
call fcn.00407b30
add esp, 0x14
push 0x423658
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x4236e4], ebx
je 0x40daad
cmp dword [0x4236e0], ebx
je 0x40daad
mov edi, dword [0x423754]
push 0x42375c
inc edi
mov dword [0x423754], edi
call esi
mov eax, dword [esp + 0x224]
add esp, 4
cmp eax, 1
jne 0x40d8cd
mov eax, dword [esp + 0x21c]
mov ecx, dword [0x4236e0]
push eax
mov eax, dword [esp + 0x21c]
mov edx, dword [ecx]
mov eax, dword [eax + 8]
push eax
call dword [edx + 0x14]
jmp case.0x40da91.3
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x218]
or ecx, 0xffffffff
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebx + 4]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [sym.imp.MSVCRT.dll__mbsrchr]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x40d9bb
lea ecx, [esp + 0x114]
push 0x5c
push ecx
call ebp
add esp, 8
test eax, eax
je 0x40d9bb
lea edx, [esp + 0x114]
push 0x5c
push edx
call ebp
mov edi, eax
or ecx, 0xffffffff
inc edi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x5c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x120]
push ecx
call ebp
add esp, 0x10
mov byte [eax], 0
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x40da48
lea edx, [esp + 0x10]
push 0x5c
push edx
call ebp
add esp, 8
test eax, eax
je 0x40da48
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x118]
push ecx
call ebp
mov edi, eax
or ecx, 0xffffffff
inc edi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x5c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x120]
push ecx
call ebp
add esp, 0x10
mov byte [eax], 0
mov esi, dword [0x42375c]
mov eax, dword [ebx + 0x14]
push esi
mov esi, dword [esp + 0x224]
push 0x41
push esi
mov ecx, dword [0x4236e0]
lea esi, [esp + 0x1c]
push esi
lea esi, [esp + 0x124]
mov edx, dword [ecx]
push esi
mov si, word [eax + 6]
push esi
mov si, word [eax + 4]
mov eax, dword [eax]
push esi
push eax
call dword [edx + 0x10]
mov ecx, dword [ebx + 0x14]
xor eax, eax
pop ebp
mov ax, word [ecx + 6]
dec eax
cmp eax, 7
ja case.0x40da91.3
jmp dword [eax*4 + 0x40dabc]
inc dword [0x423758]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x208
ret