Function at 0x407e53
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4b206c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, edx
cmp dword [edi + 0x14], 8
jb 0x407e77
mov eax, dword [edi]
jmp 0x407e79
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ecx
push ecx
mov ecx, esp
push esi
call fcn.0040387d
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.0040d7f0
push 0x49346c
lea ecx, [ebp - 0x34]
call fcn.0040197a
push 8
pop edi
cmp dword [ebp - 0x20], edi
lea eax, [ebp - 0x34]
push 0x20019
cmovae eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x40]
push eax
push 0x80000001
call fcn.00416d80
cmp dword [ebp - 0x40], 0
je 0x407f4e
push str.nosign_sygyzy
lea ecx, [ebp - 0x40]
call fcn.00416e90
test al, al
jne 0x407f4e
cmp dword [ebx + 0x10], 0
jne 0x407f4e
lea ecx, [ebp - 0x1c]
call fcn.0041c9e0
test al, al
je 0x407f4e
cmp dword [esi + 0x14], edi
jb 0x407ef8
mov ecx, dword [esi]
jmp 0x407efa
mov ecx, esi
push 0
xor dl, dl
call fcn.0041ea10
pop ecx
lea ecx, [ebp - 0x1c]
test al, al
je 0x407f3d
cmp dword [ebp - 8], edi
push 0
cmovae ecx, dword [ebp - 0x1c]
push ecx
call fcn.0041b6a0
pop ecx
pop ecx
test eax, eax
jne 0x407f4e
cmp dword [ebp - 8], edi
lea edx, [ebp - 0x1c]
cmovae edx, dword [ebp - 0x1c]
cmp dword [esi + 0x14], edi
jb 0x407f33
mov ecx, dword [esi]
jmp 0x407f35
mov ecx, esi
call fcn.0041ea80
lea ecx, [ebp - 0x1c]
cmp dword [ebp - 8], edi
push 1
cmovae ecx, dword [ebp - 0x1c]
push ecx
call fcn.0041b6a0
pop ecx
pop ecx
push str.antilsp.dll
mov ecx, esi
call fcn.00402237
test eax, eax
je 0x407f6e
push str.presetui.dll
mov ecx, esi
call fcn.00402237
test eax, eax
jne 0x407fb5
lea ecx, [ebp - 0x1c]
call fcn.0041c9e0
test al, al
je 0x407fb5
cmp dword [ebp - 8], edi
lea ecx, [ebp - 0x1c]
push 0
cmovae ecx, dword [ebp - 0x1c]
mov dl, 1
call fcn.0041b2e0
pop ecx
test al, al
jne 0x407fb5
lea ecx, [ebp - 0x40]
call fcn.00416e40
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.004019ef
lea ecx, [ebp - 0x1c]
call fcn.0040d070
xor eax, eax
jmp 0x408059
cmp dword [ebp - 8], edi
lea eax, [ebp - 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmovae eax, dword [ebp - 0x1c]
push edi
push 0
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x40803b
cmp dword [esi + 0x14], 8
jb 0x407fdb
mov ecx, dword [esi]
jmp 0x407fdd
mov ecx, esi
push 0
xor dl, dl
call fcn.0041ea10
pop ecx
test al, al
je 0x408023
cmp dword [ebp - 8], 8
lea edx, [ebp - 0x1c]
cmovae edx, dword [ebp - 0x1c]
cmp dword [esi + 0x14], 8
jb 0x408000
mov ecx, dword [esi]
jmp 0x408002
mov ecx, esi
call fcn.0041ea80
test al, al
je 0x408023
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push 8
cmovae eax, dword [ebp - 0x1c]
push 0
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x40803b
cmp dword [esi + 0x14], 8
jb 0x40802b
mov esi, dword [esi]
push 0
xor dl, dl
mov ecx, esi
call fcn.0041ea10
pop ecx
test al, al
jne 0x40806a
lea ecx, [ebp - 0x40]
call fcn.00416e40
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.004019ef
lea ecx, [ebp - 0x1c]
call fcn.0040d070
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00460c27
mov esp, ebp
pop ebp
ret
push ecx
call fcn.0041bab0
int3