Function at 0x404aaf
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x421a6a
call fcn.00420f90
sub esp, 0x358
lea eax, [ebp + 8]
push ebx
push esi
push edi
test eax, eax
jne 0x404ced
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x18]
push eax
push 3
pop ebx
push ebx
call esi
test eax, eax
je 0x404af9
cmp byte [ebp - 0x17], 0x3a
jne 0x404af9
movzx eax, byte [ebp - 0x18]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
push eax
push ebx
call esi
test eax, eax
je 0x404b15
cmp byte [ebp - 0xf], 0x3a
jne 0x404b15
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
push eax
push ebx
call esi
test eax, eax
je 0x404b31
cmp byte [ebp - 0xf], 0x3a
jne 0x404b31
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x10]
push eax
call edi
test eax, eax
je 0x404b52
cmp byte [ebp - 0xf], 0x3a
jne 0x404b52
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp + 8]
cmp eax, 0x37
jne 0x404bc5
lea eax, [ebp - 0x10]
push eax
push ebx
call esi
test eax, eax
je 0x404b76
cmp byte [ebp - 0xf], 0x3a
jne 0x404b76
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
push eax
push ebx
call esi
test eax, eax
je 0x404b92
cmp byte [ebp - 0xf], 0x3a
jne 0x404b92
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
push eax
push ebx
call esi
test eax, eax
je 0x404bae
cmp byte [ebp - 0xf], 0x3a
jne 0x404bae
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
and byte [ebp - 0x12], 0
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 0x14], 0x42
mov byte [ebp - 0x13], 0x3a
call edi
jmp 0x404c83
lea eax, [ebp - 0x14]
push eax
push ebx
call esi
test eax, eax
je 0x404be1
cmp byte [ebp - 0x13], 0x3a
jne 0x404be1
movzx eax, byte [ebp - 0x14]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x14]
push eax
call edi
test eax, eax
je 0x404bfc
cmp byte [ebp - 0x13], 0x3a
jne 0x404bfc
movzx eax, byte [ebp - 0x14]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp + 8]
cmp eax, 0x37
jne 0x404c34
lea eax, [ebp - 0x14]
push eax
push ebx
call esi
test eax, eax
je 0x404c20
cmp byte [ebp - 0x13], 0x3a
jne 0x404c20
movzx eax, byte [ebp - 0x14]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
and byte [ebp - 0x1a], 0
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 0x1c], 0x42
mov byte [ebp - 0x1b], 0x3a
call edi
jmp 0x404c58
push 0
call dword [sym.imp.KERNEL32.dll_PulseEvent]
lea eax, [ebp - 0x14]
push eax
push ebx
call esi
test eax, eax
je 0x404c58
cmp byte [ebp - 0x13], 0x3a
jne 0x404c58
movzx eax, byte [ebp - 0x14]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp - 0x10]
push eax
push ebx
call esi
test eax, eax
je 0x404c74
cmp byte [ebp - 0xf], 0x3a
jne 0x404c74
movzx eax, byte [ebp - 0x10]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push 0
push 1
push 0xc8d
call dword [sym.imp.KERNEL32.dll_OpenEventA]
lea eax, [ebp - 0x18]
push eax
call edi
test eax, eax
je 0x404c9e
cmp byte [ebp - 0x17], 0x3a
jne 0x404c9e
movzx eax, byte [ebp - 0x18]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
lea eax, [ebp + 8]
cmp eax, 0x37
lea eax, [ebp - 0x18]
push eax
push ebx
jne 0x404cd6
call esi
test eax, eax
je 0x404cc2
cmp byte [ebp - 0x17], 0x3a
jne 0x404cc2
movzx eax, byte [ebp - 0x18]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
and byte [ebp - 0x1a], 0
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 0x1c], 0x42
mov byte [ebp - 0x1b], 0x3a
call edi
jmp 0x404ced
call esi
test eax, eax
je 0x404ced
cmp byte [ebp - 0x17], 0x3a
jne 0x404ced
movzx eax, byte [ebp - 0x18]
push eax
call sub.MSVCRT.dll_toupper
pop ecx
push 0
push 0x7d
push 0x34
pop edi
push edi
push 0x33
pop eax
push eax
push 0x36
push 0x31
push 0x43
pop ebx
push ebx
push 0x38
push 0x35
push 0x44
push 0x39
push 0x36
push 0x42
push 0x37
push 0x2d
pop esi
push esi
push 0x46
push 0x46
push 0x42
push 0x41
push esi
push 0x66
push 0x36
push edi
push edi
push esi
push 0x32
push 0x38
push edi
push 0x39
push esi
push 0x41
push eax
push 0x46
push eax
push eax
push 0x44
push eax
push 0x38
lea eax, [ebp - 0xf8]
push 0x7b
push eax
call fcn.004047d8
add esp, 0xa0
lea eax, [ebp - 0xf8]
push eax
mov eax, dword [0x4293d0]
push 0
push 0x1f0003
call dword [eax + 0x30]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x404e64
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x48]
push dword [ebp - 0x14]
mov eax, dword [0x4293d0]
call dword [eax + 0x44]
mov eax, dword [0x4293d0]
push 0xbb8
call dword [eax + 0x3c]
lea eax, [ebp - 0x364]
push eax
mov eax, dword [0x4293d0]
push 0x104
call dword [eax + 0x54]
push 0
push 0x73
push 0x25
push 0x73
lea eax, [ebp - 0x94]
push 0x25
push eax
call fcn.004047d8
add esp, 0x18
push 0
push 0x74
push 0x61
push 0x64
push 0x2e
push 0x7d
push ebx
push 0x32
pop eax
push eax
push 0x37
push eax
push ebx
push eax
push 0x45
push ebx
push 0x31
push 0x44
push 0x35
push 0x31
push esi
push 0x30
push 0x31
push ebx
push 0x41
push esi
push 0x65
push 0x64
push 0x63
push edi
push esi
push 0x38
push edi
push 0x45
push 0x45
push esi
push 0x41
push 0x39
push 0x46
push ebx
push edi
push eax
push 0x46
push 0x46
lea eax, [ebp - 0x15c]
push 0x7b
push eax
call fcn.004047d8
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x260]
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x1dc]
add esp, 0xc0
xor edi, edi
lea eax, [ebp - 0x260]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x50]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404e68
xor eax, eax
jmp 0x404ec1
lea eax, [ebp - 0x20]
push edi
push eax
lea eax, [ebp - 0x30]
push 0x10
push eax
mov eax, dword [0x4293d0]
push esi
call dword [eax + 0x4c]
mov eax, dword [0x4293d0]
push esi
call dword [eax + 0x44]
push 0x58
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, edi
mov dword [ebp - 4], edi
je 0x404ea4
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
call fcn.0040e234
jmp 0x404ea6
xor eax, eax
mov ecx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
mov dword [ecx], eax
lea eax, [ebp - 0x260]
push eax
mov eax, dword [0x4293d0]
call dword [eax + 0x40]
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4