Function at 0x4015f0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x4334c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0xb8], eax
call fcn.00407440
test al, al
jne 0x40173f
push 0x4282e0
lea ecx, [ebp - 0x34]
call fcn.004012d0
push str.This_version_of_MTA_requires_Windows_XP_SP3_or_later
lea ecx, [ebp - 0x1c]
call fcn.004012d0
push str.launch_xpsp3_check
lea ecx, [ebp - 0x7c]
call fcn.004012d0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x7c]
push 2
push eax
call fcn.00403dd0
mov ecx, dword [ebp - 0x68]
add esp, 0x10
cmp ecx, 0x10
jb 0x40169d
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401693
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401b33
push ecx
push edx
call fcn.0040e1e3
add esp, 8
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
cmp ecx, 0x10
jb 0x4016e3
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4016d9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401b33
push ecx
push edx
call fcn.0040e1e3
add esp, 8
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
cmp ecx, 0x10
jb 0x401729
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40171f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401b33
push ecx
push edx
call fcn.0040e1e3
add esp, 8
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e2a6
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword fs:[0x2c]
mov ecx, dword [0x434368]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov edi, dword [eax + ecx*4]
mov eax, dword [0x433fec]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, dword [edi + 4]
jg 0x401b38
mov eax, dword [0x433fe8]
test eax, eax
je 0x40177c
push 0xfffffffffffffffc
call eax
jmp 0x4017a2
mov eax, dword [0x433ff4]
cmp eax, dword [edi + 4]
jg 0x401b82
mov eax, dword [0x433ff0]
test eax, eax
je 0x40179c
push 2
call eax
jmp 0x4017a2
call dword [sym.imp.USER32.dll_SetProcessDPIAware]
push 0x428378
call dword [sym.imp.SHELL32.dll_SetCurrentProcessExplicitAppUserModelID]
push str.loader.dll
lea ecx, [ebp - 0x94]
call fcn.004012d0
push 0x4283a8
lea ecx, [ebp - 0x34]
call fcn.004012d0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00405560
add esp, 4
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00408f00
mov ecx, dword [ebp - 8]
add esp, 0xc
cmp ecx, 0x10
jb 0x40181b
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401811
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401bcc
push ecx
push edx
call fcn.0040e1e3
add esp, 8
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
cmp ecx, 0x10
jb 0x401861
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401857
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401bcc
push ecx
push edx
call fcn.0040e1e3
add esp, 8
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00408f00
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
add esp, 0xc
push 1
call edi
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.004050a0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x4018a3
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 0xac]
mov esi, eax
call fcn.00401500
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0xb0]
mov dword [ebp - 0xb4], eax
call edi
test esi, esi
jne 0x401978
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004050a0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x4018eb
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x34]
call fcn.00401500
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004050a0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x401912
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.00401500
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x40197e
cmp dword [ebp - 0x50], 0x10
lea ecx, [ebp - 0x64]
push 0
cmovae ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x94]
cmp dword [ebp - 0x80], 0x10
push ecx
cmovae eax, dword [ebp - 0x94]
push eax
lea eax, [ebp - 0x1c]
push str.LoadLibrary__s_succeeded_on_change_to_directory__s
push eax
call fcn.00401250
add esp, 0x10
push eax
push 0x1650
call fcn.00403740
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.004014b0
xor edi, edi
jmp 0x401984
mov eax, dword [ebp - 0xb4]
xor edi, edi
test esi, esi
je 0x4019b8
push str.DoWinMain
push esi
call ebx
test eax, eax
je 0x4019ac
push dword [ebp + 0x14]
push dword [ebp - 0xb8]
push dword [ebp - 0xbc]
push dword [ebp - 0xc0]
call eax
add esp, 0x10
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x401a5b
mov edi, 1
push edi
push edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00406810
cmp dword [ebp - 8], 0x10
lea ecx, [ebp - 0x1c]
lea eax, [ebp - 0x4c]
cmovae ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x38], 0x10
push ecx
cmovae eax, dword [ebp - 0x4c]
push eax
lea eax, [ebp - 0x34]
push str.Failed_to_load:__s_n_n_s
push eax
call fcn.00401250
push 0
lea eax, [ebp - 0x34]
push eax
push 0x164f
call fcn.00403740
add esp, 0x2c
lea ecx, [ebp - 0xac]
push 0x4282e0
call fcn.004012d0
push str.loader_dll_not_loadable
lea ecx, [ebp - 0x7c]
call fcn.004012d0
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x7c]
push 2
push eax
call fcn.00403dd0
add esp, 0x10
lea ecx, [ebp - 0x7c]
call fcn.004014b0
lea ecx, [ebp - 0xac]
call fcn.004014b0
lea ecx, [ebp - 0x34]
call fcn.004014b0
lea ecx, [ebp - 0x1c]
call fcn.004014b0
mov ecx, dword [ebp - 0x38]
pop esi
pop ebx
cmp ecx, 0x10
jb 0x401a91
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401a87
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401bd1
push ecx
push edx
call fcn.0040e1e3
add esp, 8
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
cmp ecx, 0x10
jb 0x401ad7
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401acd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401bd1
push ecx
push edx
call fcn.0040e1e3
add esp, 8
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
cmp ecx, 0x10
jb 0x401b20
mov edx, dword [ebp - 0x94]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401b16
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401bd1
push ecx
push edx
call fcn.0040e1e3
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0040e2a6
mov esp, ebp
pop ebp
ret 0x10
call fcn.004115ff
push 0x433fec
call fcn.0040e242
add esp, 4
cmp dword [0x433fec], 0xffffffff
jne 0x40176d
push 0x4282e4
call esi
test eax, eax
je 0x401b67
push str.SetProcessDpiAwarenessContext
push eax
call ebx
jmp 0x401b6b
xor eax, eax
jmp 0x401b6b
push 0x433fec
mov dword [0x433fe8], eax
call fcn.0040e1f1
add esp, 4
jmp 0x40176d
push 0x433ff4
call fcn.0040e242
add esp, 4
cmp dword [0x433ff4], 0xffffffff
jne 0x40178d
push str.shcore
call esi
test eax, eax
je 0x401bb1
push str.SetProcessDpiAwareness
push eax
call ebx
jmp 0x401bb5
xor eax, eax
jmp 0x401bb5
push 0x433ff4
mov dword [0x433ff0], eax
call fcn.0040e1f1
add esp, 4
jmp 0x40178d
call fcn.004115ff
call fcn.004115ff
int3