Function at 0x421590
Capabilities:
Check if file exists
Copy file
Create directory
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ab119
mov eax, dword fs:[0]
push eax
sub esp, 0x4e8
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x4e0], eax
push ebx
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x4f8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, ecx
mov dword [eax], 0
mov eax, dword [esi + 4]
push 0x550
push eax
mov dword [esp + 0x2c], esi
mov edi, edx
call ebx
mov ecx, dword [esi + 4]
push 0x4fa
push ecx
mov dword [esi + 0x54], eax
call ebx
mov edx, dword [esi + 0x54]
push 0x64
push 0
push 0x406
push edx
mov dword [esi + 0x58], eax
call dword [sym.imp.USER32.dll_SendMessageW]
test edi, edi
je 0x421644
add esi, 0x48
mov eax, edi
mov dword [esp + 0x18], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421626
sub eax, edx
sar eax, 1
mov ebx, eax
push edi
mov eax, esi
call fcn.00404050
jmp 0x4216ec
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
push 0x5be3b8
push 0
push 0
push 0x5be440
push 1
lea ecx, [esp + 0x7c]
push ecx
call fcn.004236b0
mov dword [esp + 0x64], vtable.WTL::CFileDialog.0
mov dword [esp + 0x500], 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
lea edi, [esp + 0x64]
call fcn.00423340
cmp eax, 1
je 0x4216be
mov edx, dword [esi + 4]
push 2
push edx
call dword [sym.imp.USER32.dll_EndDialog]
mov dword [esp + 0x500], 0xffffffff
mov eax, dword [esp + 0x78]
test eax, eax
je 0x421c57
push eax
call fcn.00577358
jmp 0x421c57
add esi, 0x48
lea edx, [esp + 0x2e0]
mov edi, esi
mov dword [esp + 0x18], esi
call fcn.004040f0
mov dword [esp + 0x500], 0xffffffff
mov eax, dword [esp + 0x78]
test eax, eax
je 0x4216ec
push eax
call fcn.00577358
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
mov ecx, 0x5bcc3c
mov dword [esp + 0x504], 1
call fcn.00404460
mov byte [esp + 0x500], 2
mov eax, dword [esi]
push 0x2e
push eax
call fcn.0057b53f
add esp, 8
test eax, eax
je 0x4217d6
sub eax, dword [esi]
sar eax, 1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4217d6
lea ecx, [esp + 0x14]
mov edx, esi
call fcn.00403560
lea edi, [esp + 0x10]
mov byte [esp + 0x500], 3
call fcn.004035d0
mov byte [esp + 0x500], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42178c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x18]
mov ecx, ebx
lea esi, [esp + 0x14]
call fcn.00403540
lea edi, [esp + 0x1c]
mov byte [esp + 0x500], 4
call fcn.004035d0
mov byte [esp + 0x500], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4217e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4217e1
mov eax, esi
lea edi, [esp + 0x10]
call fcn.004035d0
mov esi, dword [esp + 0x10]
push 0x5c
push esi
call fcn.0057b53f
add esp, 8
test eax, eax
jne 0x4217f9
or eax, 0xffffffff
jmp 0x4217fd
sub eax, esi
sar eax, 1
lea ecx, [eax + 1]
lea esi, [esp + 0x14]
lea edx, [esp + 0x10]
call fcn.00403540
mov ebx, 5
lea edi, [esp + 0x10]
mov byte [esp + 0x500], bl
call fcn.004035d0
mov byte [esp + 0x500], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42184a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x5be44c
call fcn.004866f0
add esp, 4
test al, al
je 0x421b01
lea edi, [esp + 0x20]
call fcn.00474ab0
mov byte [esp + 0x500], 6
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 0xc]
test eax, eax
jle 0x4218a4
lea ecx, [eax - 1]
test ecx, ecx
jl 0x42199c
cmp ecx, eax
jg 0x42199c
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4218a4
push 0x5c
call fcn.00404400
push 6
push str.cdict_
lea edx, [esp + 0x28]
push edx
call fcn.00403fc0
mov ebx, dword [esp + 0x20]
push 0
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea esi, [esp + 0x28]
call fcn.00421cb0
mov byte [esp + 0x500], 7
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
mov ecx, esi
push ecx
push eax
call fcn.004d4e50
add esp, 8
test eax, eax
jne 0x4219a6
mov esi, dword [esp + 0x24]
mov edx, dword [esi + 4]
push 0x30
push 0x5be468
push 0x5be474
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esi + 4]
push 2
push eax
call dword [sym.imp.USER32.dll_EndDialog]
lea esi, [esp + 0x28]
call fcn.00469df0
lea eax, [ebx - 0x10]
mov byte [esp + 0x500], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421942
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x500], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42196a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x500], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421995
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x421c5c
push 0x80070057
call fcn.00404550
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ebx, [esp + 0x28]
call fcn.00423280
push eax
lea eax, [esp + 0x20]
push eax
mov ebx, 0x5be44c
mov byte [esp + 0x510], 8
call fcn.00412480
add esp, 0x10
mov byte [esp + 0x500], 0xa
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4219fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, dword [esp + 0x24]
je 0x421a6c
mov edx, dword [esi + 4]
push 0x24
push 0x5be468
push 0x5be484
push edx
call ebx
cmp eax, 6
je 0x421a6c
mov eax, dword [esi + 4]
push 2
push eax
call dword [sym.imp.USER32.dll_EndDialog]
lea ecx, [esp + 0x14]
call fcn.00404510
lea esi, [esp + 0x28]
call fcn.00469df0
lea ecx, [esp + 0x20]
call fcn.00404510
lea ecx, [esp + 0x1c]
call fcn.00404510
lea ecx, [esp + 0x10]
call fcn.00404510
xor eax, eax
jmp 0x421c5c
mov ecx, dword [esp + 0x14]
mov eax, dword [edi]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x421ae7
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
call fcn.004d5380
mov edx, dword [esi + 4]
add esp, 0xc
push 0x40
push 0x5be468
push 0x5be4ac
push edx
call ebx
mov eax, dword [esi + 4]
push 1
push eax
call dword [sym.imp.USER32.dll_EndDialog]
lea ecx, [esp + 0x14]
call fcn.00404510
lea esi, [esp + 0x28]
call fcn.00469df0
lea ecx, [esp + 0x20]
call fcn.00404510
lea ecx, [esp + 0x1c]
call fcn.00404510
lea ecx, [esp + 0x10]
call fcn.00404510
jmp 0x421c57
mov ecx, dword [esi + 4]
push 0x40
push 0x5be468
push 0x5be4c0
push ecx
call ebx
mov edx, dword [esi + 4]
push 2
push edx
jmp 0x421aaf
lea esi, [esp + 0x34]
call fcn.004210d0
lea eax, [esp + 0x10]
lea edi, [esp + 0x5c]
mov byte [esp + 0x500], 0xb
call fcn.004035d0
push 0x5be4d4
lea eax, [esp + 0x64]
call fcn.00404050
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
mov edi, esi
call fcn.00423390
cmp eax, 2
jne 0x421b7f
push eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, esi
mov byte [esp + 0x500], 2
call fcn.00421140
mov byte [esp + 0x500], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x42195e
mov esi, dword [esp + 0x24]
lea edi, [esi + 0x4c]
lea eax, [esp + 0x5c]
call fcn.004035d0
lea edi, [esi + 0x50]
lea eax, [esp + 0x60]
call fcn.004035d0
xor ebx, ebx
lea ecx, [esp + 0x18]
push ecx
push ebx
push esi
push 0x421c90
push ebx
push ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x68], 0x80004005
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x64], eax
jne 0x421be4
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x421bd5
call edi
jmp 0x421be1
call edi
and eax, 0xffff
or eax, 0x80070000
mov dword [esi + 0x68], eax
mov edx, dword [esi + 4]
push ebx
push 0x6e
push 0x6e
push edx
call dword [sym.imp.USER32.dll_SetTimer]
lea eax, [esp + 0x34]
mov byte [esp + 0x500], 2
call fcn.00421140
mov byte [esp + 0x500], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421c2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x500], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421c57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x4f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4e0]
xor ecx, esp
call fcn.005787fd
mov esp, ebp
pop ebp
ret 4