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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60a027
mov eax, dword fs:[0]
push eax
sub esp, 0x4e8
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x4e0], eax
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
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 + 0x20], eax
call ebx
mov edx, dword [esi + 0x20]
push 0x64
push 0
push 0x406
push edx
mov dword [esi + 0x24], eax
call dword [sym.imp.USER32.dll_SendMessageW]
test edi, edi
je 0x41e114
add esi, 0x2c
mov eax, edi
mov dword [esp + 0x18], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41e0f6
sub eax, edx
sar eax, 1
mov ebx, eax
push edi
mov eax, esi
call fcn.004037a0
jmp 0x41e1bc
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
push 0x6264a0
push 0
push 0
push 0x6257c0
push 1
lea ecx, [esp + 0x7c]
push ecx
call fcn.0041ece0
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.0041ec10
cmp eax, 1
je 0x41e18e
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 0x41e72f
push eax
call fcn.005d1311
jmp 0x41e72f
add esi, 0x2c
lea edx, [esp + 0x2e0]
mov edi, esi
mov dword [esp + 0x18], esi
call fcn.00403760
mov dword [esp + 0x500], 0xffffffff
mov eax, dword [esp + 0x78]
test eax, eax
je 0x41e1bc
push eax
call fcn.005d1311
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
mov ecx, 0x6244e0
mov dword [esp + 0x504], 1
call fcn.00409dd0
mov byte [esp + 0x500], 2
mov eax, dword [esi]
push 0x2e
push eax
call fcn.005d37a2
add esp, 8
test eax, eax
je 0x41e2a6
sub eax, dword [esi]
sar eax, 1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41e2a6
lea ecx, [esp + 0x14]
mov edx, esi
call fcn.0041a270
lea edi, [esp + 0x10]
mov byte [esp + 0x500], 3
call fcn.0040ab90
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 0x41e25c
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.00409f40
lea edi, [esp + 0x1c]
mov byte [esp + 0x500], 4
call fcn.0040ab90
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 0x41e2b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41e2b1
mov eax, esi
lea edi, [esp + 0x10]
call fcn.0040ab90
mov esi, dword [esp + 0x10]
push 0x5c
push esi
call fcn.005d37a2
add esp, 8
test eax, eax
jne 0x41e2c9
or eax, 0xffffffff
jmp 0x41e2cd
sub eax, esi
sar eax, 1
lea ecx, [eax + 1]
lea esi, [esp + 0x14]
lea edx, [esp + 0x10]
call fcn.00409f40
mov ebx, 5
lea edi, [esp + 0x10]
mov byte [esp + 0x500], bl
call fcn.0040ab90
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 0x41e31a
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, 0x626528
call fcn.00414f20
add esp, 4
test al, al
je 0x41e5d1
lea edi, [esp + 0x20]
call fcn.0047ac70
mov byte [esp + 0x500], 6
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 0xc]
test eax, eax
jle 0x41e374
lea ecx, [eax - 1]
test ecx, ecx
jl 0x41e46c
cmp ecx, eax
jg 0x41e46c
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x41e374
push 0x5c
call fcn.0040af90
push 6
push str.cdict_
lea edx, [esp + 0x28]
push edx
call fcn.0040aee0
mov ebx, dword [esp + 0x20]
push 0
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea esi, [esp + 0x28]
call fcn.0041e760
mov byte [esp + 0x500], 7
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
mov ecx, esi
push ecx
push eax
call fcn.00512cf0
add esp, 8
test eax, eax
jne 0x41e476
mov esi, dword [esp + 0x24]
mov edx, dword [esi + 4]
push 0x30
push 0x626544
push 0x626550
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.0041e7b0
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 0x41e412
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 0x41e43a
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 0x41e465
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x41e734
push 0x80070057
call fcn.00403650
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ebx, [esp + 0x28]
call fcn.0041eb50
push eax
lea eax, [esp + 0x20]
push eax
mov ebx, 0x626528
mov byte [esp + 0x510], 8
call fcn.0040aab0
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 0x41e4cc
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 0x41e53c
mov edx, dword [esi + 4]
push 0x24
push 0x626544
push 0x626560
push edx
call ebx
cmp eax, 6
je 0x41e53c
mov eax, dword [esi + 4]
push 2
push eax
call dword [sym.imp.USER32.dll_EndDialog]
lea ecx, [esp + 0x14]
call fcn.00403870
lea esi, [esp + 0x28]
call fcn.0041e7b0
lea ecx, [esp + 0x20]
call fcn.00403870
lea ecx, [esp + 0x1c]
call fcn.00403870
lea ecx, [esp + 0x10]
call fcn.00403870
xor eax, eax
jmp 0x41e734
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 0x41e5b7
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
call fcn.00513220
mov edx, dword [esi + 4]
add esp, 0xc
push 0x40
push 0x626544
push 0x626588
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.00403870
lea esi, [esp + 0x28]
call fcn.0041e7b0
lea ecx, [esp + 0x20]
call fcn.00403870
lea ecx, [esp + 0x1c]
call fcn.00403870
lea ecx, [esp + 0x10]
call fcn.00403870
jmp 0x41e72f
mov ecx, dword [esi + 4]
push 0x40
push 0x626544
push 0x62659c
push ecx
call ebx
mov edx, dword [esi + 4]
push 2
push edx
jmp 0x41e57f
lea esi, [esp + 0x34]
call fcn.0041dcb0
lea eax, [esp + 0x10]
lea edi, [esp + 0x5c]
mov byte [esp + 0x500], 0xb
call fcn.0040ab90
push 0x6265b0
lea eax, [esp + 0x64]
call fcn.004037a0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
mov edi, esi
call fcn.0041ec60
mov ebx, 2
cmp eax, ebx
jne 0x41e652
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
push ebx
push ecx
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, esi
mov byte [esp + 0x500], bl
call fcn.0041dd20
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 0x41e42e
mov edi, dword [esp + 0x24]
mov esi, dword [edi + 0x28]
test esi, esi
je 0x41e673
push esi
call fcn.004fdd60
push esi
call fcn.005d2367
add esp, 4
mov dword [edi + 0x28], 0
push 0x74
call fcn.005d2776
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov byte [esp + 0x500], 0xc
je 0x41e695
push eax
call fcn.004fdc60
jmp 0x41e697
xor eax, eax
test eax, eax
mov byte [esp + 0x500], 0xb
mov dword [edi + 0x28], eax
je 0x41e6cc
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x60]
push edx
push ecx
mov esi, eax
call fcn.004fdec0
mov edx, dword [edi + 4]
push 0
push 0x64
push 0x6e
push edx
call dword [sym.imp.USER32.dll_SetTimer]
lea eax, [esp + 0x34]
mov byte [esp + 0x500], bl
call fcn.0041dd20
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 0x41e704
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 0x41e72f
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.005d28b3
mov esp, ebp
pop ebp
ret 4