Function at 0x408e9e
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x42e0b4]
xor eax, esp
mov dword [esp + 0xc], eax
cmp word [ebp + 8], 0
push esi
push edi
mov edi, edx
mov esi, ecx
jne 0x408ede
push esi
push edi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryW]
xor eax, eax
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor ecx, esp
call fcn.00416b30
mov esp, ebp
pop ebp
ret 4
push 0x3d
pop eax
push dword [ebp + 8]
mov word [esp + 0x10], ax
call dword [sym.imp.msvcrt.dll_towupper]
pop ecx
mov word [esp + 0xe], ax
lea ecx, [esp + 0xc]
push 0x3a
pop eax
mov word [esp + 0x10], ax
xor eax, eax
mov word [esp + 0x12], ax
call fcn.0040ec2e
test eax, eax
je 0x41b787
push eax
mov edx, edi
mov ecx, esi
call fcn.0040f3a0
jmp 0x408ec9
fdivr qword [ecx + 0x73]
mov word [ebp - 0x22], cx
mov edx, 0x25
mov word [ebp - 0x20], dx
mov eax, 0x73
mov word [ebp - 0x1e], ax
xor ecx, ecx
mov word [ebp - 0x1c], cx
push 0x104
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
lea ecx, [ebp - 0x48]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov ecx, dword [eax + 0x24]
call ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.0041a940
add esp, 8
mov ecx, dword [ebp + 0xc]
add ecx, 0x82f
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x20]
call fcn.00417528
mov ecx, dword [ebp + 0xc]
add ecx, 0x816
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x24]
call fcn.00417528
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x20]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x18]
call fcn.004174b6
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
and eax, 4
jne 0x41b885
push 0x208
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
push ecx
call fcn.00417331
add esp, 0xc
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x24]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
call fcn.004174b6
mov ecx, dword [ebp + 0xc]
add ecx, 0xa9c
call fcn.004175f7
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41b883
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x68]
call eax
add esp, 0x10
jmp 0x41b899
mov edx, dword [ebp + 0xc]
add edx, 0xa9c
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x1c]
call fcn.0041764c
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0041c870
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x41b9c7
mov edx, dword [ebp + 8]
add edx, 4
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.0041cc20
add esp, 0xc
movzx eax, al
test eax, eax
je 0x41b9c7
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
and edx, 4
jne 0x41b992
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov ecx, dword [eax + 0x78]
call ecx
push 0xf4240
xor edx, edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
call fcn.00417588
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, 2
imul edx, ecx, 3
mov eax, 0x64
mov word [ebp + edx - 0x24], ax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x24]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x68]
call eax
add esp, 0x10
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x28]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0xa9c
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0041c9b0
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x41b992
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ebp + 0xc]
add eax, 0xa9c
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 0x7c]
call eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.0041c2e0
add esp, 0xc
mov edx, dword [ebp + 0xc]
cmp dword [edx + 4], 1
jne 0x41b9c7
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0041ccf0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.0041c5b0
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.0041a940
add esp, 0xc
push 0x68
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
call edx
add esp, 4
mov dword [ebp - 4], eax
push 0x68
mov eax, dword [ebp - 4]
push eax
call fcn.00416d73
add esp, 8
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x64], edx
push 4
push 0x3000
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xca8]
push ecx
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x80]
call ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xeec]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx + 0xee4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xca8]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
push edx
call fcn.00417331
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xca8]
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xca4]
mov dword [eax + 0x24], edx
mov eax, 0x6d
mov word [ebp - 0x34], ax
mov ecx, 0x73
mov word [ebp - 0x32], cx
mov edx, 0x69
mov word [ebp - 0x30], dx
mov eax, 0x2e
mov word [ebp - 0x2e], ax
mov ecx, 0x64
mov word [ebp - 0x2c], cx
mov edx, 0x6c
mov word [ebp - 0x2a], dx
mov eax, 0x6c
mov word [ebp - 0x28], ax
xor ecx, ecx
mov word [ebp - 0x26], cx
push 0x208
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x24]
call ecx
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
push 0x208
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
push ecx
call fcn.00416d73
add esp, 8
push 0x208
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x24]
call ecx
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
push 0x208
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x30]
push ecx
call fcn.00416d73
add esp, 8
mov edx, dword [ebp + 0xc]
add edx, 0x848
push edx
call fcn.00417392
add esp, 4
test eax, eax
jbe 0x41bb70
mov ecx, dword [ebp + 0xc]
add ecx, 0x848
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
call fcn.00417528
mov ecx, dword [ebp + 0xc]
add ecx, 0x894
push ecx
call fcn.0041736e
add esp, 4
test eax, eax
jbe 0x41bb9c
mov edx, dword [ebp + 0xc]
add edx, 0x894
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
call fcn.0041764c
jmp 0x41bbaa
lea edx, [ebp - 0x34]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x28]
call fcn.0041764c
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [edx + 0x50], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xee0]
mov dword [edx + 0x4c], ecx
mov edx, dword [ebp - 4]
cmp dword [edx + 0x50], 0
je 0x41bbee
mov eax, dword [ebp - 4]
cmp dword [eax + 0x50], 1
je 0x41bbee
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x50], 2
je 0x41bbee
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x48]
or eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x48], eax
push 0xc8
push 0x64
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0041a530
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call fcn.00420290
add esp, 4
movzx edx, al
test edx, edx
jne 0x41bc4b
push 2
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xb4]
call edx
push 0x90
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
add ecx, 0xe0
mov edx, 2
call fcn.00417696
add esp, 8
xor al, al
jmp 0x41bd87
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x48]
and edx, 1
jne 0x41bcad
mov eax, dword [ebp - 4]
mov dword [eax + 0x54], 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.00420580
add esp, 4
movzx edx, al
test edx, edx
jne 0x41bca8
push 2
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xb4]
call edx
push 0x97
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add ecx, 0xe0
mov edx, 2
call fcn.00417696
add esp, 8
xor al, al
jmp 0x41bd87
jmp 0x41bd76
push 0x80
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
call eax
add esp, 4
mov dword [ebp - 8], eax
push 0x80
mov ecx, dword [ebp - 8]
push ecx
call fcn.00416d73
add esp, 8
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x78], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
push eax
call fcn.0041ee50
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x41bd0a
push 2
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [eax + 0xb4]
call ecx
xor al, al
jmp 0x41bd87
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x74], ecx
mov edx, dword [ebp - 4]
cmp dword [edx + 0x50], 3
jne 0x41bd47
mov eax, dword [ebp - 8]
push eax
call fcn.0041eda0
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x41bd45
push 2
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [eax + 0xb4]
call ecx
xor al, al
jmp 0x41bd87
jmp 0x41bd76
mov edx, dword [ebp - 4]
cmp dword [edx + 0x50], 4
jne 0x41bd76
mov eax, dword [ebp - 8]
push eax
call fcn.00421c00
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x41bd76
push 2
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [eax + 0xb4]
call ecx
xor al, al
jmp 0x41bd87
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [eax + 0xb4]
call ecx
mov al, 1
mov esp, ebp
pop ebp
ret