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

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x457641
mov eax, dword [ebp - 4]
add esp, 0xffffffdc
push ebx
push esi
push edi
mov eax, 0x530681
call fcn.004d57f0
xor edx, edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 8
mov word [ebp - 0x14], 8
mov byte [ebp - 0x2028], 0
lea eax, [ebp - 0x2028]
xor ebx, ebx
push eax
push 0x180
call sub.KERNEL32.dll_GetCurrentDirectoryA
push 0
push 0x28
lea edx, [ebp - 0x1028]
push edx
call fcn.00443488
add esp, 0xc
test eax, eax
jle 0x4576bc
lea ecx, [ebp - 0x2028]
push ecx
lea eax, [ebp - 0x1028]
push eax
call fcn.004d30a0
add esp, 8
test eax, eax
jne 0x4576bc
mov bl, 1
push 0
push 0x10
lea eax, [ebp - 0x1028]
push eax
call fcn.00443488
add esp, 0xc
test eax, eax
jle 0x4576ef
lea edx, [ebp - 0x2028]
push edx
lea ecx, [ebp - 0x1028]
push ecx
call fcn.004d30a0
add esp, 8
test eax, eax
jne 0x4576ef
mov bl, 1
test bl, bl
je 0x45776a
mov byte [ebp - 0x2028], 0
push 0
push 0x1c
lea eax, [ebp - 0x2028]
push eax
call fcn.00443488
add esp, 0xc
lea edx, [ebp - 0x2028]
test edx, edx
je 0x457756
lea ecx, [ebp - 0x2028]
push ecx
call fcn.004d2f1c
pop ecx
test eax, eax
je 0x457756
lea eax, [ebp - 0x2028]
push eax
call fcn.004d2f1c
pop ecx
movsx edx, byte [ebp + eax - 0x2029]
cmp edx, 0x5c
je 0x457756
push 0x5ed428
lea ecx, [ebp - 0x2028]
push ecx
call fcn.004d2e40
add esp, 8
push 0x5ed42a
lea eax, [ebp - 0x2028]
push eax
call fcn.004d2e40
add esp, 8
movsx edx, byte [ebp - 0x2027]
cmp edx, 0x3a
jne 0x45779a
mov cl, byte [ebp - 0x2026]
test cl, cl
je 0x45778a
mov al, byte [ebp - 0x2025]
test al, al
jne 0x45779a
mov esi, 0x5ed430
lea edi, [ebp - 0x2028]
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x2028]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, 0x52a67e
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [0x52a67e]
test al, al
je 0x457852
mov edx, 0x52a67e
test edx, edx
je 0x457812
push 0x52a67e
call fcn.004d2f1c
pop ecx
test eax, eax
je 0x457812
push 0x52a67e
call fcn.004d2f1c
pop ecx
movsx ecx, byte [eax + 0x52a67d]
cmp ecx, 0x5c
je 0x457812
push 0x5ed439
push 0x52a67e
call fcn.004d2e40
add esp, 8
push 0x52a67e
call fcn.00456cf0
pop ecx
test al, al
je 0x457852
push 0x52a67e
call fcn.00457504
pop ecx
test al, al
je 0x457852
push 0x52a67e
call fcn.00456930
pop ecx
test al, 1
je 0x457852
test al, 2
je 0x457852
mov dword [0x530384], 3
jmp 0x4579ba
push 0x52a67e
call fcn.00456c4c
pop ecx
test eax, eax
je 0x4578e6
mov eax, 0x52a67e
test eax, eax
je 0x4578a6
push 0x52a67e
call fcn.004d2f1c
pop ecx
test eax, eax
je 0x4578a6
push 0x52a67e
call fcn.004d2f1c
pop ecx
movsx edx, byte [eax + 0x52a67d]
cmp edx, 0x5c
je 0x4578a6
push 0x5ed43b
push 0x52a67e
call fcn.004d2e40
add esp, 8
push 0x52a67e
call fcn.00456cf0
pop ecx
test al, al
je 0x4578e6
push 0x52a67e
call fcn.00457504
pop ecx
test al, al
je 0x4578e6
push 0x52a67e
call fcn.00456930
pop ecx
test al, 1
je 0x4578e6
test al, 2
je 0x4578e6
mov dword [0x530384], 4
jmp 0x4579ba
mov esi, 0x5ed43d
mov edi, 0x52a67e
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0x52a67e
call fcn.00456cf0
pop ecx
test al, al
je 0x457937
push 0x52a67e
call fcn.00457504
pop ecx
test al, al
je 0x457937
push 0x52a67e
call fcn.00456930
pop ecx
test al, 1
je 0x457937
test al, 2
je 0x457937
mov bl, 1
mov dword [0x530384], 6
jmp 0x4579ba
push 0
push 0x1c
push 0x52a67e
call fcn.00443488
add esp, 0xc
test eax, eax
jle 0x4579ab
mov eax, 0x52a67e
test eax, eax
je 0x45798d
push 0x52a67e
call fcn.004d2f1c
pop ecx
test eax, eax
je 0x45798d
push 0x52a67e
call fcn.004d2f1c
pop ecx
movsx edx, byte [eax + 0x52a67d]
cmp edx, 0x5c
je 0x45798d
push 0x5ed446
push 0x52a67e
call fcn.004d2e40
add esp, 8
push 0x5ed448
push 0x52a67e
call fcn.004d2e40
add esp, 8
mov dword [0x530384], 5
jmp 0x4579ba
mov esi, 0x5ed44e
mov edi, 0x52a67e
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0x52a7fe
call fcn.00456c4c
pop ecx
test eax, eax
je 0x457a40
push 0x52a7fe
call fcn.00456cf0
pop ecx
test al, al
je 0x457a40
mov dl, byte [0x52a7fe]
test dl, dl
je 0x457a40
mov ecx, 0x52a7fe
test ecx, ecx
je 0x457a23
push 0x52a7fe
call fcn.004d2f1c
pop ecx
test eax, eax
je 0x457a23
push 0x52a7fe
call fcn.004d2f1c
pop ecx
movsx eax, byte [eax + 0x52a7fd]
cmp eax, 0x5c
je 0x457a23
push 0x5ed457
push 0x52a7fe
call fcn.004d2e40
add esp, 8
push 0x52a7fe
call fcn.00456dc8
pop ecx
mov dword [0x530388], 4
test eax, eax
jne 0x457afe
xor eax, eax
lea edi, [ebp - 0x2028]
or ecx, 0xffffffff
mov esi, 0x52a7fe
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x52a7fe
call fcn.00456cf0
pop ecx
test al, al
je 0x457ada
mov al, byte [0x52a7fe]
test al, al
je 0x457ada
mov edx, 0x52a7fe
test edx, edx
je 0x457ac1
push 0x52a7fe
call fcn.004d2f1c
pop ecx
test eax, eax
je 0x457ac1
push 0x52a7fe
call fcn.004d2f1c
pop ecx
movsx ecx, byte [eax + 0x52a7fd]
cmp ecx, 0x5c
je 0x457ac1
push 0x5ed459
push 0x52a7fe
call fcn.004d2e40
add esp, 8
push 0x52a7fe
call fcn.00456dc8
pop ecx
mov dword [0x530388], 3
test eax, eax
jne 0x457afe
mov esi, 0x5ed45b
mov edi, 0x52a7fe
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0x52a7fe
call fcn.00456dc8
pop ecx
mov dword [0x530388], 6
dec eax
jne 0x457b0a
mov byte [0x52e409], 1
jmp 0x457b11
mov byte [0x52e409], 0
push 0x52a67e
call sub.KERNEL32.dll_SetCurrentDirectoryA
test eax, eax
jne 0x457b34
push 0x52a67e
call fcn.00439d90
pop ecx
push 0x52a67e
call sub.KERNEL32.dll_SetCurrentDirectoryA
test bl, bl
je 0x457b43
push 0x52a67e
call fcn.00456ad8
pop ecx
push 0x5ed469
push 0x52a7fe
push 0x5ed464
push 0x52a97e
call fcn.004d75f8
add esp, 0x10
push 0x5ed47a
push 0x52a7fe
push 0x5ed475
push 0x52adfe
call fcn.004d75f8
add esp, 0x10
push 0x5ed48b
push 0x52a67e
push 0x5ed486
push 0x52ac7e
call fcn.004d75f8
add esp, 0x10
push 0x5ed49c
push 0x52a67e
push 0x5ed497
push 0x52aafe
call fcn.004d75f8
add esp, 0x10
push 0x52a67e
push 0x52a7fe
call fcn.004d30a0
add esp, 8
test eax, eax
je 0x457bf4
push 0x52a67e
call fcn.00456930
pop ecx
test al, 1
je 0x457bf4
push 0x5ed4ad
push 0x52a7fe
push 0x5ed4a8
push 0x52aafe
call fcn.004d75f8
add esp, 0x10
push 0x5ed4b9
push 0x52a7fe
push 0x613ed6
call fcn.00455b80
add esp, 0xc
push 0x5ed4c1
push 0x52a7fe
push 0x614656
call fcn.00455b80
add esp, 0xc
push 0x5ed4c6
push 0x52a7fe
push 0x6144d6
call fcn.00455b80
add esp, 0xc
push 0x5ed4cf
push 0x52a7fe
push 0x6138d6
call fcn.00455b80
add esp, 0xc
push 0x5ed4d7
push 0x52a7fe
push 0x613a56
call fcn.00455b80
add esp, 0xc
push 0x613a56
push 0
call fcn.00454514
add esp, 8
push 0x613a56
push 0
call fcn.0040b8e8
add esp, 8
push 0x52a67e
call fcn.00457058
pop ecx
test eax, eax
je 0x457ca2
mov al, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x457cf6
push 0x52a7fe
call fcn.00457058
pop ecx
test eax, eax
je 0x457cbf
mov al, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x457cf6
mov word [ebp - 0x14], 0
jmp 0x457cea
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov esp, ebp
mov edi, dword [ebp - 0x2034]
mov esi, dword [ebp - 0x2030]
mov ebx, dword [ebp - 0x202c]
pop ebp
ret