Function at 0x401610
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]
mov dword [ebp - 0xb8], eax
call fcn.004075e0
test al, al
jne 0x40179c
push 0x4282d0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
call fcn.004014c0
push str.This_version_of_MTA_requires_Windows_XP_SP3_or_later
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
call fcn.004014c0
push str.launch_xpsp3_check
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
call fcn.004014c0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x4c]
push 2
push eax
call fcn.00403de0
mov edx, dword [ebp - 0x38]
add esp, 0x10
cmp edx, 0x10
jb 0x4016fb
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4016f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401c5c
push edx
push ecx
call fcn.0040e748
add esp, 8
mov edx, dword [ebp - 8]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
cmp edx, 0x10
jb 0x401741
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401737
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401c5c
push edx
push ecx
call fcn.0040e748
add esp, 8
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
cmp edx, 0x10
jb 0x401787
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40177d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401c5c
push edx
push ecx
call fcn.0040e748
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e93b
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword fs:[0x2c]
mov ecx, dword [0x434428]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov edi, dword [eax + ecx*4]
mov eax, dword [0x433ffc]
cmp eax, dword [edi + 4]
jg 0x401c61
mov eax, dword [0x433ff8]
test eax, eax
je 0x4017da
push 0xfffffffffffffffc
call eax
jmp 0x401800
mov eax, dword [0x434004]
cmp eax, dword [edi + 4]
jg 0x401cab
mov eax, dword [0x434000]
test eax, eax
je 0x4017fa
push 2
call eax
jmp 0x401800
call dword [sym.imp.USER32.dll_SetProcessDPIAware]
push 0x428368
call dword [sym.imp.SHELL32.dll_SetCurrentProcessExplicitAppUserModelID]
push str.loader.dll
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0xf
call fcn.004014c0
push 0x428398
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
call fcn.004014c0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00405690
add esp, 4
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.004090b0
mov edx, dword [ebp - 8]
add esp, 0xc
cmp edx, 0x10
jb 0x4018a9
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40189f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401cf5
push edx
push ecx
call fcn.0040e748
add esp, 8
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
cmp edx, 0x10
jb 0x4018ef
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4018e5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401cf5
push edx
push ecx
call fcn.0040e748
add esp, 8
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.004090b0
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
add esp, 0xc
push 1
call edi
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.00405230
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x401931
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call ebx
lea ecx, [ebp - 0xac]
mov esi, eax
call fcn.004013e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0xb0]
mov dword [ebp - 0xb4], eax
call edi
test esi, esi
jne 0x401a06
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00405230
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x40197b
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x34]
call fcn.004013e0
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00405230
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x4019a2
mov eax, dword [eax]
push eax
call ebx
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.004013e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x401a4a
cmp dword [ebp - 0x68], 0x10
lea ecx, [ebp - 0x7c]
push 0
cmovae ecx, dword [ebp - 0x7c]
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.00403710
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.00401390
jmp 0x401a10
mov eax, dword [ebp - 0xb4]
test esi, esi
je 0x401a4a
push str.DoWinMain
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test eax, eax
je 0x401a3e
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 0x401b84
mov edi, 1
push edi
push edi
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004069e0
cmp dword [ebp - 0x38], 0x10
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x64]
cmovae ecx, dword [ebp - 0x4c]
cmp dword [ebp - 0x50], 0x10
push ecx
cmovae eax, dword [ebp - 0x64]
push eax
lea eax, [ebp - 0xac]
push str.Failed_to_load:__s_n_n_s
push eax
call fcn.00401250
push 0
lea eax, [ebp - 0xac]
push eax
push 0x164f
call fcn.00403710
add esp, 0x2c
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
push 0x4282d0
call fcn.004014c0
push str.loader_dll_not_loadable
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
call fcn.004014c0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x1c]
push 2
push eax
call fcn.00403de0
mov edx, dword [ebp - 8]
add esp, 0x10
cmp edx, 0x10
jb 0x401b2b
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401b21
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401cfa
push edx
push ecx
call fcn.0040e748
add esp, 8
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
cmp edx, 0x10
jb 0x401b71
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401b67
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401cfa
push edx
push ecx
call fcn.0040e748
add esp, 8
lea ecx, [ebp - 0xac]
call fcn.00401390
lea ecx, [ebp - 0x4c]
call fcn.00401390
mov edx, dword [ebp - 0x50]
cmp edx, 0x10
jb 0x401bb8
mov ecx, dword [ebp - 0x64]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401bae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401cff
push edx
push ecx
call fcn.0040e748
add esp, 8
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
cmp edx, 0x10
jb 0x401bfe
mov ecx, dword [ebp - 0x7c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401bf4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401cff
push edx
push ecx
call fcn.0040e748
add esp, 8
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
cmp edx, 0x10
jb 0x401c47
mov ecx, dword [ebp - 0x94]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401c3d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401cff
push edx
push ecx
call fcn.0040e748
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e93b
mov esp, ebp
pop ebp
ret 0x10
call fcn.00411d1f
push 0x433ffc
call fcn.0040e865
add esp, 4
cmp dword [0x433ffc], 0xffffffff
jne 0x4017cb
push 0x4282d4
call esi
test eax, eax
je 0x401c90
push str.SetProcessDpiAwarenessContext
push eax
call ebx
jmp 0x401c94
xor eax, eax
jmp 0x401c94
push 0x433ffc
mov dword [0x433ff8], eax
call fcn.0040e81b
add esp, 4
jmp 0x4017cb
push 0x434004
call fcn.0040e865
add esp, 4
cmp dword [0x434004], 0xffffffff
jne 0x4017eb
push str.shcore
call esi
test eax, eax
je 0x401cda
push str.SetProcessDpiAwareness
push eax
call ebx
jmp 0x401cde
xor eax, eax
jmp 0x401cde
push 0x434004
mov dword [0x434000], eax
call fcn.0040e81b
add esp, 4
jmp 0x4017eb
call fcn.00411d1f
call fcn.00411d1f
call fcn.00411d1f
int3