Function at 0x4015d0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x434500]
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.00407c80
test al, al
jne 0x40171f
push 0x4292e0
lea ecx, [ebp - 0x34]
call fcn.004012b0
push str.This_version_of_MTA_requires_Windows_XP_SP3_or_later
lea ecx, [ebp - 0x1c]
call fcn.004012b0
push str.launch_xpsp3_check
lea ecx, [ebp - 0x7c]
call fcn.004012b0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x7c]
push 2
push eax
call fcn.00404510
mov ecx, dword [ebp - 0x68]
add esp, 0x10
cmp ecx, 0xf
jbe 0x40167d
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401673
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401aac
push ecx
push edx
call fcn.0040ef5c
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, 0xf
jbe 0x4016c3
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4016b9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401aac
push ecx
push edx
call fcn.0040ef5c
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, 0xf
jbe 0x401709
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4016ff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401aac
push ecx
push edx
call fcn.0040ef5c
add esp, 8
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ef6a
mov esp, ebp
pop ebp
ret 0x10
push 0x429330
call dword [sym.imp.SHELL32.dll_SetCurrentProcessExplicitAppUserModelID]
push str.loader.dll
lea ecx, [ebp - 0x94]
call fcn.004012b0
push 0x429350
lea ecx, [ebp - 0x34]
call fcn.004012b0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00405da0
add esp, 4
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00409740
mov ecx, dword [ebp - 8]
add esp, 0xc
cmp ecx, 0xf
jbe 0x401798
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40178e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401ab1
push ecx
push edx
call fcn.0040ef5c
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, 0xf
jbe 0x4017de
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4017d4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401ab1
push ecx
push edx
call fcn.0040ef5c
add esp, 8
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00409740
add esp, 0xc
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.004058e0
add esp, 8
cmp dword [eax + 0x14], 7
jbe 0x40181e
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push eax
call edi
lea ecx, [ebp - 0xac]
mov esi, eax
call fcn.004014e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0xb0]
mov dword [ebp - 0xb4], eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
test esi, esi
jne 0x4018f6
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004058e0
add esp, 8
cmp dword [eax + 0x14], 7
jbe 0x40186d
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x34]
call fcn.004014e0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004058e0
add esp, 8
cmp dword [eax + 0x14], 7
jbe 0x401894
mov eax, dword [eax]
push eax
call edi
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.004014e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x4018fc
cmp dword [ebp - 0x50], 0xf
lea ecx, [ebp - 0x64]
push 0
cmova ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x94]
cmp dword [ebp - 0x80], 0xf
push ecx
cmova eax, dword [ebp - 0x94]
push eax
lea eax, [ebp - 0x1c]
push str.LoadLibrary__s_succeeded_on_change_to_directory__s
push eax
call fcn.00401230
add esp, 0x10
push eax
push 0x1650
call fcn.00403e80
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.00401490
xor edi, edi
jmp 0x401902
mov eax, dword [ebp - 0xb4]
xor edi, edi
test esi, esi
je 0x40193a
push str.DoWinMain
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40192e
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 0x4019dd
mov edi, 1
push edi
push edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00407060
cmp dword [ebp - 8], 0xf
lea ecx, [ebp - 0x1c]
lea eax, [ebp - 0x4c]
cmova ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x38], 0xf
push ecx
cmova eax, dword [ebp - 0x4c]
push eax
lea eax, [ebp - 0x34]
push str.Failed_to_load:__s_n_n_s
push eax
call fcn.00401230
push 0
lea eax, [ebp - 0x34]
push eax
push 0x164f
call fcn.00403e80
add esp, 0x2c
lea ecx, [ebp - 0xac]
push 0x4292e0
call fcn.004012b0
push str.loader_dll_not_loadable
lea ecx, [ebp - 0x7c]
call fcn.004012b0
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x7c]
push 2
push eax
call fcn.00404510
add esp, 0x10
lea ecx, [ebp - 0x7c]
call fcn.00401490
lea ecx, [ebp - 0xac]
call fcn.00401490
lea ecx, [ebp - 0x34]
call fcn.00401490
lea ecx, [ebp - 0x1c]
call fcn.00401490
mov ecx, dword [ebp - 0x38]
pop esi
cmp ecx, 0xf
jbe 0x401a12
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401a08
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401ab6
push ecx
push edx
call fcn.0040ef5c
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, 0xf
jbe 0x401a54
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401a4a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401ab6
push ecx
push edx
call fcn.0040ef5c
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, 0xf
jbe 0x401a99
mov edx, dword [ebp - 0x94]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401a8f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401ab6
push ecx
push edx
call fcn.0040ef5c
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0040ef6a
mov esp, ebp
pop ebp
ret 0x10
call fcn.004124cf
call fcn.004124cf
call fcn.004124cf
int3