Function at 0x421840
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4727cf
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x49c00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0xf8], edi
mov dword [ebp - 0x108], edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x104], esi
mov dword [ebp - 0xf0], 0
mov byte [ebp - 0xe9], 0
cmp dword [esi + 0x10], 0
je 0x421e9d
mov ecx, esi
call fcn.00411400
test al, al
je 0x421dc3
mov edx, esi
lea ecx, [ebp - 0x8c]
call fcn.00411460
mov dword [ebp - 4], 0
mov edx, esi
lea ecx, [ebp - 0x5c]
call fcn.004117f0
mov byte [ebp - 4], 2
mov eax, SysReAllocString
mov ecx, dword [ebp - 0x4c]
sub eax, ecx
cmp eax, 1
jb 0x421ec1
lea eax, [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
cmovae eax, dword [ebp - 0x5c]
push 1
push 0x481628
push ecx
push eax
push ecx
push dword [ebp - 0x104]
lea ecx, [ebp - 0x124]
call fcn.00408350
mov dword [ebp - 0xf0], 1
lea ecx, [ebp - 0x8c]
push ecx
mov edx, eax
lea ecx, [ebp - 0x44]
call fcn.00413360
add esp, 4
mov byte [ebp - 4], 3
mov eax, 1
mov dword [ebp - 0xf0], eax
and eax, 0xfffffffe
mov dword [ebp - 0xf0], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x124]
call fcn.00404570
lea ecx, [ebp - 0x44]
call fcn.00411400
mov byte [ebp - 0xf1], al
push esi
lea ecx, [ebp - 0x74]
call fcn.00407a80
mov byte [ebp - 4], 5
cmp byte [ebp - 0xf1], 0
je 0x4219ad
push 0x24
push 0x47f580
push str.The_program_was_closed_incorrectly._Do_you_want_to_run_the_autosaved_recovery_file_
call fcn.0042f5b0
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
add dword [ebx + 0x177506f8], eax
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
cmovae eax, dword [ebp - 0x44]
push dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x74]
call fcn.00404600
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x74]
call fcn.0044eaf0
mov dword [ebp - 0xfc], eax
test eax, eax
je 0x421ec6
mov ecx, edi
call fcn.00420ea0
mov ecx, eax
call fcn.00417000
call fcn.00428e40
mov edi, dword [eax + 8]
mov esi, dword [edi]
push dword [esi + 4]
push edi
mov ecx, edi
call fcn.004290b0
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xf8]
mov ecx, dword [ecx + 0x448]
call fcn.00455ec0
call fcn.0042f5b0
mov esi, eax
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x124]
call fcn.004117f0
mov byte [ebp - 4], 7
push eax
mov ecx, esi
call fcn.0042f8f0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x124]
call fcn.00404570
push 8
call fcn.0046c08a
add esp, 4
mov dword [ebp - 0x10c], eax
mov byte [ebp - 4], 8
mov ecx, eax
call fcn.004370f0
mov edi, eax
mov byte [ebp - 4], 6
mov dword [ebp - 0x100], edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
xor eax, eax
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x2c]
push eax
mov esi, dword [ebp - 0xfc]
push esi
call fcn.004371c0
mov dword [ebp - 0x10c], eax
test eax, eax
je 0x421aea
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push dword [ebp - 0x104]
mov ecx, eax
call edx
push dword [ebp - 0x10c]
mov ecx, dword [ebp - 0xf8]
call fcn.004233d0
mov ecx, dword [ebp - 0x10c]
lea ecx, [ecx + 4]
call fcn.004147b0
mov byte [ebp - 0xe9], 1
cmp dword [ebp - 0x1c], 0
je 0x421b60
push 0x5c
push 0
lea eax, [ebp - 0xe8]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push str.No_files
lea ecx, [ebp - 0x124]
call fcn.004047c0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x124]
push eax
push ecx
call fcn.0042f5b0
mov eax, dword [eax + 0xc]
push eax
lea ecx, [ebp - 0xe8]
call fcn.00436d50
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x124]
call fcn.00404570
lea ecx, [ebp - 0xe8]
call fcn.00436f90
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xe8]
call fcn.00436e50
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.00404570
mov ecx, dword [ebp - 0xf8]
call fcn.00422600
mov dword [ebp - 4], 5
jmp 0x421c91
test esi, esi
je 0x421cc0
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 4]
test eax, eax
je 0x421cb6
add eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x421cb6
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
push eax
call dword [0x47e0a4]
test edi, edi
je 0x421cd2
add dword [edi + 4], 0xffffffff
jne 0x421cd2
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
call fcn.0042f5b0
mov byte [ebp - 4], 0x10
add eax, 0x34
push eax
lea ecx, [ebp - 0x124]
call fcn.00407a80
mov esi, dword [ebp - 0xf0]
or esi, 0x10
mov dword [ebp - 0xf0], esi
cmp dword [eax + 0x14], 8
jb 0x421d01
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
and esi, 0xffffffef
mov dword [ebp - 0xf0], esi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x124]
call fcn.00404570
cmp byte [ebp - 0xe9], 0
je 0x421d34
mov ecx, dword [ebp - 0xf8]
call fcn.00423770
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x74]
call fcn.00404570
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00404570
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.00404570
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
jmp 0x421e98
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
xor eax, eax
mov word [ebp - 0x44], ax
push 9
push str.No_file:
lea ecx, [ebp - 0x44]
call fcn.00404600
mov dword [ebp - 4], 0x12
mov eax, dword [esi + 0x10]
cmp dword [esi + 0x14], 8
jb 0x421e06
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x44]
call fcn.00412d20
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 0xf0], 0x20
lea esi, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae esi, dword [ebp - 0x2c]
call fcn.0042f5b0
mov eax, dword [eax + 0xc]
push 0x10
push str.Error
push esi
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0x20
mov dword [ebp - 0xf0], eax
and eax, 0xffffffdf
mov dword [ebp - 0xf0], eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x2c]
call fcn.00404570
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00404570
mov al, byte [ebp - 0xe9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046c079
mov esp, ebp
pop ebp
ret 4
call fcn.004044c0
lea ecx, [ebp - 0x140]
call fcn.00404550
push 0x4985a0
mov eax, ecx
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3