Function at 0x422170
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472979
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
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 al, byte [ebp + 8]
mov byte [ebp - 0x8c], al
mov dword [ebp - 0x88], 0
push 0x54
push 0
lea eax, [ebp - 0x68]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, dword [edi + 0x424]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
mov edx, eax
lea ecx, [ebp - 0xdc]
call fcn.004117f0
mov esi, eax
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x424]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
call edx
mov edx, eax
lea ecx, [ebp - 0xc4]
call fcn.00411640
mov byte [ebp - 4], 2
push 4
push 0x481750
mov ecx, eax
call fcn.00412d20
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xa4], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x94], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 0x88], 1
call fcn.0042f5b0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
xor eax, eax
mov word [ebp - 0x64], ax
mov byte [ebp - 4], 3
mov dword [ebp - 0x4c], str.3DL_Files__.3dl_
mov dword [ebp - 0x48], str..3dl
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x44]
call fcn.00407a80
mov byte [ebp - 4], 4
push esi
lea ecx, [ebp - 0x2c]
call fcn.00407a80
mov byte [ebp - 4], 6
mov esi, 1
mov dword [ebp - 0x88], esi
and esi, 0xfffffffe
mov dword [ebp - 0x88], esi
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xa4]
call fcn.00404570
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xc4]
call fcn.00404570
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xdc]
call fcn.00404570
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x68]
call fcn.004184c0
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x70], 0
je 0x42246f
mov byte [ebp - 4], 0xb
push 0x44
call fcn.0046c08a
mov esi, eax
mov dword [ebp - 0xa8], esi
mov byte [ebp - 4], 0xc
push 0x44
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x8c]
push dword [edi + 0x424]
mov ecx, esi
call fcn.00432b40
mov edi, eax
mov dword [ebp - 0x8c], edi
mov byte [ebp - 4], 0xb
push 0x44
call fcn.0046c08a
mov esi, eax
mov dword [ebp - 0xac], esi
mov byte [ebp - 4], 0xd
push 0x44
push 0
push esi
call sub.VCRUNTIME140.dll_memset
call fcn.0042f5b0
mov eax, dword [eax + 0xc]
add esp, 8
push eax
mov ecx, esi
call fcn.0043a780
mov byte [ebp - 4], 0xb
mov dword [0x49fbc4], eax
push edi
mov ecx, eax
call fcn.0043aa50
mov ecx, dword [0x49fbc4]
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [0x49fbc4]
mov al, byte [eax + 0x40]
mov byte [ebp - 0x81], al
test al, al
je 0x4223d6
push 0x40
push str.Export_cancelled
push str.Export_canceled
call fcn.0042f5b0
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [ebp - 0xdc]
push eax
mov esi, dword [ebp - 0x8c]
mov ecx, esi
call fcn.00433030
mov byte [ebp - 4], 0xe
mov edi, dword [eax + 0x10]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xdc]
call fcn.00404570
test edi, edi
je 0x422446
lea eax, [ebp - 0xc4]
push eax
mov ecx, esi
call fcn.00433030
mov edi, eax
mov byte [ebp - 4], 0xf
cmp dword [edi + 0x14], 8
jb 0x422420
mov edi, dword [edi]
call fcn.0042f5b0
mov eax, dword [eax + 0xc]
push 0x10
push str.Export_failed
push edi
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xc4]
call fcn.00404570
test esi, esi
je 0x422451
mov ecx, esi
call fcn.004147b0
mov ecx, dword [0x49fbc4]
test ecx, ecx
je 0x422462
mov eax, dword [ecx]
push 1
call dword [eax + 8]
mov dword [ebp - 4], 0xa
mov esi, dword [ebp - 0x88]
call fcn.0042f5b0
mov byte [ebp - 4], 0x11
add eax, 0x34
push eax
lea ecx, [ebp - 0xa4]
call fcn.00407a80
or esi, 2
mov dword [ebp - 0x88], esi
cmp dword [eax + 0x14], 8
jb 0x422498
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
and esi, 0xfffffffd
mov dword [ebp - 0x88], esi
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xa4]
call fcn.00404570
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x80]
call fcn.00404570
mov dword [ebp - 4], 0x13
lea ecx, [ebp - 0x2c]
call fcn.00404570
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x44]
call fcn.00404570
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00404570
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