Function at 0x413ac0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x214
mov eax, dword [0x5d32a4]
mov bl, 1
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0x5dd9e4], 0
jne 0x413e89
mov esi, dword [0x5dd9c0]
test esi, esi
je 0x413ba1
test byte [0x5d2028], 1
je 0x413e89
cmp dword [esi + 0x14], 7
jbe 0x413b08
mov esi, dword [esi]
push 0
push 0x80
push 4
push 0
push 3
push 4
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x5dd9e4], eax
inc eax
cmp eax, 1
ja 0x413e89
lea edi, [ebp - 0x218]
mov word [ebp - 0x218], 0
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x413e87
cmp eax, 0x104
ja 0x413e87
mov esi, dword [0x5dd9c0]
push edi
call fcn.004ee714
add esp, 4
mov ecx, edi
mov edi, eax
mov eax, dword [esi + 0x14]
cmp eax, edi
jae 0x413cb7
sub esp, 0xc
mov al, byte [ebp - 0x21c]
mov byte [esp + 4], al
mov dword [esp + 8], ecx
mov ecx, esi
mov dword [esp], edi
call fcn.004053f6
mov edx, dword [0x5dd9c0]
mov esi, edx
jmp 0x413cdc
push 0x18
call fcn.004e812d
add esp, 4
mov esi, eax
lea ebx, [ebp - 0x218]
push 0x104
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], 0
push ebx
call fcn.004ee714
add esp, 4
mov edi, eax
cmp eax, 7
jbe 0x413c01
sub esp, 0xc
mov al, byte [ebp - 0x21c]
mov ecx, esi
mov byte [esp + 4], al
mov dword [esp + 8], ebx
mov dword [esp], edi
call fcn.004053f6
jmp 0x413c19
mov eax, edi
mov dword [esi + 0x10], edi
add eax, edi
push eax
push ebx
push esi
call fcn.004eab00
add esp, 0xc
mov word [esi + edi*2], 0
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
adc byte [ecx + 0x7f983f2], cl
jbe 0x413c28
mov edx, dword [esi]
mov ebx, eax
xor edi, edi
sub ebx, 1
jb 0x413d37
cmp ebx, eax
cmovae ebx, eax
cmp word [edx + ebx*2], 0x5c
lea edi, [edx + ebx*2]
je 0x413c85
mov ebx, eax
mov dword [ebp - 0x220], ecx
mov ecx, eax
neg ebx
not ecx
cmp ebx, ecx
cmova ecx, ebx
lea ebx, [ecx + ecx + 2]
mov ecx, dword [ebp - 0x220]
nop word cs:[eax + eax]
nop dword [eax + eax]
test ebx, ebx
je 0x413d35
add ebx, 2
cmp word [edi - 2], 0x5c
lea edi, [edi - 2]
jne 0x413c70
sub edi, edx
mov bl, 1
cmp edi, 0xfffffffe
jne 0x413c95
mov edi, eax
jmp 0x413d39
sar edi, 1
lea ecx, [edi + 1]
cmp eax, ecx
jb 0x413ea0
mov dword [esi + 0x10], ecx
mov word [edx + edi*2 + 2], 0
mov edi, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
jmp 0x413d39
cmp eax, 8
mov ebx, esi
jb 0x413cc0
mov ebx, dword [esi]
mov eax, edi
mov dword [esi + 0x10], edi
add eax, edi
push eax
push ecx
push ebx
call fcn.004eb080
add esp, 0xc
mov word [ebx + edi*2], 0
mov edx, esi
mov bl, 1
mov ecx, dword [esi + 0x14]
mov edi, edx
cmp ecx, 8
jb 0x413ce8
mov edi, dword [esi]
mov eax, dword [esi + 0x10]
cmp word [edi + eax*2 - 2], 0x5c
je 0x413dde
cmp ecx, eax
jne 0x413dc4
sub esp, 0x10
mov al, byte [ebp - 0x21c]
mov ecx, esi
mov byte [esp + 4], al
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x56e226
mov dword [esp], 1
call fcn.00405558
mov esi, dword [0x5dd9c0]
jmp 0x413dd8
mov edi, eax
mov bl, 1
mov eax, ecx
sub eax, edi
cmp eax, 9
jae 0x413d6f
sub esp, 0x10
mov al, byte [ebp - 0x21c]
mov ecx, esi
mov byte [esp + 4], al
mov dword [esp + 0xc], 9
mov dword [esp + 8], str.debug.log
mov dword [esp], 9
call fcn.00405558
jmp 0x413dac
lea eax, [edi + 9]
cmp ecx, 7
mov dword [esi + 0x10], eax
mov eax, esi
jbe 0x413d7e
mov eax, dword [esi]
movzx ecx, word [0x56e534]
movsd xmm0, qword [0x56e52c]
movsd xmm1, qword [str.debug.log]
mov word [eax + edi*2 + 0x10], cx
movsd qword [eax + edi*2 + 8], xmm0
movsd qword [eax + edi*2], xmm1
mov word [eax + edi*2 + 0x12], 0
mov dword [0x5dd9c0], esi
test byte [0x5d2028], 1
jne 0x413b00
jmp 0x413e89
lea edi, [eax + 1]
cmp ecx, 8
mov dword [esi + 0x10], edi
jb 0x413dd1
mov edx, dword [esi]
mov dword [edx + eax*2], 0x5c
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, ecx
sub edx, eax
cmp edx, 9
jae 0x413e14
sub esp, 0x10
mov al, byte [ebp - 0x21c]
mov ecx, esi
mov byte [esp + 4], al
mov dword [esp + 0xc], 9
mov dword [esp + 8], str.debug.log
mov dword [esp], 9
call fcn.00405558
jmp 0x413e4f
lea edx, [eax + 9]
cmp ecx, 8
mov dword [esi + 0x10], edx
jb 0x413e21
mov esi, dword [esi]
movzx ecx, word [0x56e534]
movsd xmm0, qword [0x56e52c]
movsd xmm1, qword [str.debug.log]
mov word [esi + eax*2 + 0x10], cx
movsd qword [esi + eax*2 + 8], xmm0
movsd qword [esi + eax*2], xmm1
mov word [esi + eax*2 + 0x12], 0
mov eax, dword [0x5dd9c0]
cmp dword [eax + 0x14], 7
jbe 0x413e5c
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x5dd9e4], eax
inc eax
cmp eax, 1
ja 0x413e89
mov dword [0x5dd9e4], 0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e85d0
mov eax, ebx
add esp, 0x214
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00405930
int3