Function at 0x4035d0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x429844
mov eax, dword fs:[0]
push eax
sub esp, 0x9a0
mov eax, dword [0x431570]
xor eax, esp
mov dword [esp + 0x998], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x431570]
xor eax, esp
push eax
lea eax, [esp + 0x9b4]
mov dword fs:[0], eax
lea eax, [esp + 0x190]
push eax
mov dword [esp + 0x9c0], 2
call fcn.00403230
add esp, 4
mov byte [esp + 0x9bc], 3
xor ecx, ecx
xor esi, esi
push 0xffffffffffffffff
mov word [esp + 0xf0], cx
mov ebx, 7
push esi
lea eax, [esp + 0x9e8]
lea ecx, [esp + 0xf0]
mov dword [esp + 0x108], ebx
mov dword [esp + 0x104], esi
call fcn.00409fc0
xor edx, edx
mov dword [esp + 0x154], ebx
mov dword [esp + 0x150], esi
mov word [esp + 0x140], dx
xor eax, eax
mov dword [esp + 0x11c], ebx
mov dword [esp + 0x118], esi
mov word [esp + 0x108], ax
xor ecx, ecx
mov dword [esp + 0x138], ebx
mov dword [esp + 0x134], esi
mov word [esp + 0x124], cx
mov byte [esp + 0x9bc], bl
lea edi, [ebx - 4]
mov ebx, dword [esp + 0xfc]
dec ebx
or eax, 0xffffffff
lea esi, [esp + 0xe8]
call fcn.00407be0
sub edi, 1
jne 0x4036b5
push 0xffffffffffffffff
xor ebx, ebx
push ebx
mov eax, esi
lea ecx, [esp + 0x144]
call fcn.00409fc0
mov eax, dword [0x432560]
cmp eax, 0x14d
jne 0x403a7c
mov ecx, esi
cmp byte [0x437cf2], bl
je 0x403713
push 3
mov eax, 0x42c96c
call fcn.0040bf60
push 3
mov eax, 0x42c810
jmp 0x403726
push 6
mov eax, str.32.txt
call fcn.0040bf60
push 6
mov eax, str.32.dll
lea ecx, [esp + 0x140]
call fcn.0040bf60
lea edx, [esp + 0x190]
push edx
mov ebx, str.plugin_name.32.dll
lea esi, [esp + 0xd0]
call fcn.0040dcd0
add esp, 4
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x10c]
mov byte [esp + 0x9c4], 8
call fcn.00409fc0
mov byte [esp + 0x9bc], 7
cmp dword [esp + 0xe4], 8
mov ebp, 7
jb 0x40378d
mov eax, dword [esp + 0xd0]
push eax
call fcn.00410308
add esp, 4
xor ebx, ebx
lea eax, [esp + 0x13c]
push eax
lea ecx, [esp + 0x9c8]
push ecx
lea edi, [esp + 0xd4]
call fcn.0040dc20
add esp, 8
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x128]
mov byte [esp + 0x9c4], 0xa
call fcn.00409fc0
mov esi, 8
mov byte [esp + 0x9bc], 7
cmp dword [esp + 0xe4], esi
jb 0x4037eb
mov edx, dword [esp + 0xd0]
push edx
call fcn.00410308
add esp, 4
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0x9c8]
push ecx
lea edi, [esp + 0x160]
call fcn.0040dc20
add esp, 8
mov byte [esp + 0x9bc], 0xb
mov eax, dword [esp + 0x15c]
cmp dword [esp + 0x170], esi
jae 0x403829
lea eax, [esp + 0x15c]
push eax
lea edx, [esp + 0x28]
push edx
call fcn.00408ad0
mov byte [esp + 0x9bc], 0xc
xor eax, eax
mov word [esp + 0x178], ax
push 1
mov eax, 0x42c994
lea esi, [esp + 0x178]
mov dword [esp + 0x190], ebp
mov dword [esp + 0x18c], ebx
call fcn.0040c040
push ebx
lea ecx, [esp + 0xa00]
or edi, 0xffffffff
push ecx
mov eax, edi
mov byte [esp + 0x9c4], 0xd
call fcn.0040bea0
push 1
mov eax, 0x42c994
mov ecx, esi
call fcn.0040bf60
cmp dword [esp + 0x74], ebx
je 0x403b34
push 0x42c998
push ecx
mov edx, esi
push edx
lea eax, [esp + 0x30]
push eax
call fcn.0040ddc0
add esp, 0xc
push eax
call fcn.0040e050
add esp, 8
cmp dword [0x432568], ebx
jl 0x4038f1
push 0x42c998
push ecx
lea ecx, [esp + 0x2c]
push 0x42c99c
push ecx
call fcn.0040e050
add esp, 8
push eax
call fcn.00407430
add esp, 4
push eax
call fcn.0040e050
add esp, 8
mov dword [0x432568], edi
mov eax, dword [0x43256c]
cmp eax, ebx
jl 0x403a04
test al, 1
je 0x403928
push 0x42c998
push ecx
lea edx, [esp + 0x2c]
push str.flags:_effFlagsHasEditor
push edx
call fcn.0040e050
add esp, 0xc
push eax
call fcn.0040e050
mov eax, dword [0x43256c]
add esp, 8
test eax, 0x100
je 0x403955
push 0x42c998
push ecx
lea eax, [esp + 0x2c]
push str.flags:_effFlagsIsSynth
push eax
call fcn.0040e050
add esp, 0xc
push eax
call fcn.0040e050
mov eax, dword [0x43256c]
add esp, 8
test al, 0x10
je 0x40397f
push 0x42c998
push ecx
lea ecx, [esp + 0x2c]
push str.flags:_effFlagsCanReplacing
push ecx
call fcn.0040e050
add esp, 0xc
push eax
call fcn.0040e050
mov eax, dword [0x43256c]
add esp, 8
test eax, 0x1000
je 0x4039ac
push 0x42c998
push ecx
lea edx, [esp + 0x2c]
push str.flags:_effFlagsCanDoubleReplacing
push edx
call fcn.0040e050
add esp, 0xc
push eax
call fcn.0040e050
mov eax, dword [0x43256c]
add esp, 8
test eax, 0x200
je 0x4039d9
push 0x42c7e8
push ecx
lea eax, [esp + 0x2c]
push str.flags:_effFlagsNoSoundInStop
push eax
call fcn.0040e2a0
add esp, 0xc
push eax
call fcn.0040e2a0
mov eax, dword [0x43256c]
add esp, 8
test al, 0x20
je 0x4039fe
push 0x42c7e8
push ecx
lea ecx, [esp + 0x2c]
push str.flags:_effFlagsProgramChunks
push ecx
call fcn.0040e2a0
add esp, 0xc
push eax
call fcn.0040e2a0
add esp, 8
mov dword [0x43256c], edi
mov edi, 8
mov ecx, dword [esp + 0x124]
cmp dword [esp + 0x138], edi
jae 0x403a20
lea ecx, [esp + 0x124]
mov eax, dword [esp + 0x108]
cmp dword [esp + 0x11c], edi
jae 0x403a37
lea eax, [esp + 0x108]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x403d84
push ebx
lea edx, [esp + 0x1b0]
push ebx
push edx
call fcn.004158e0
add esp, 0xc
lea edi, [esp + 0xb0]
call fcn.00402700
mov ecx, 8
cmp dword [eax + 0x18], ecx
jb 0x403c51
mov eax, dword [eax + 4]
jmp 0x403c54
cmp eax, 0x1bc
jne 0x403b2a
lea ecx, [esp + 0xe8]
cmp byte [0x437cf2], bl
je 0x403aab
push 3
mov eax, 0x42c96c
call fcn.0040bf60
push 3
mov eax, 0x42c810
jmp 0x403abe
push 6
mov eax, str.64.txt
call fcn.0040bf60
push 6
mov eax, str.64.dll
lea ecx, [esp + 0x140]
call fcn.0040bf60
lea ecx, [esp + 0x190]
push ecx
mov ebx, str.plugin_name.64.dll
lea esi, [esp + 0xd0]
call fcn.0040dcd0
add esp, 4
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x10c]
mov byte [esp + 0x9c4], 9
call fcn.00409fc0
mov byte [esp + 0x9bc], 7
cmp dword [esp + 0xe4], 8
jb 0x403b20
mov edx, dword [esp + 0xd0]
push edx
call fcn.00410308
add esp, 4
mov ebp, 7
jmp 0x40378d
mov ebp, 7
jmp 0x40378f
push ebx
lea edx, [esp + 0x1b0]
push ebx
push edx
call fcn.004158e0
mov eax, dword [esp + 0x168]
mov edi, 8
add esp, 0xc
cmp dword [esp + 0x170], edi
jae 0x403b62
lea eax, [esp + 0x15c]
push eax
push str.Unable_to_create_file__s
lea eax, [esp + 0x1b4]
push 0x400
push eax
call fcn.00411f72
add esp, 0x10
xor ecx, ecx
lea eax, [esp + 0x1ac]
mov dword [esp + 0xe4], ebp
mov dword [esp + 0xe0], ebx
mov word [esp + 0xd0], cx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403ba0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x1b0]
lea esi, [esp + 0xd0]
call fcn.0040c040
sub esp, 0x1c
mov byte [esp + 0x9d8], 0xe
mov esi, esp
mov dword [esp + 0x34], esp
xor edx, edx
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push edi
mov eax, str.jBridger
mov word [esi + 4], dx
call fcn.0040c040
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x9f4], 0xf
mov dword [esp + 0x54], esp
xor eax, eax
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push 0xffffffffffffffff
mov word [ecx + 4], ax
push ebx
lea eax, [esp + 0x10c]
call fcn.00409fc0
mov byte [esp + 0x9f4], 0xe
call fcn.00402680
add esp, 0x38
mov byte [esp + 0x9bc], 0xd
cmp dword [esp + 0xe4], edi
jb 0x403a09
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.00410308
add esp, 4
jmp 0x403a09
add eax, 4
mov edi, dword [esp + 0x124]
cmp dword [esp + 0x138], ecx
jae 0x403c6b
lea edi, [esp + 0x124]
mov esi, dword [esp + 0x108]
cmp dword [esp + 0x11c], ecx
jae 0x403c82
lea esi, [esp + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push str.Unable_to_copy__s_to__s._n_nError__d:__s
lea eax, [esp + 0x1c0]
push 0x400
push eax
call fcn.00411f72
add esp, 0x1c
cmp dword [esp + 0xc8], 8
jb 0x403cc0
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.00410308
add esp, 4
xor edx, edx
lea eax, [esp + 0x1ac]
mov word [esp + 0xd0], dx
mov dword [esp + 0xe4], ebp
mov dword [esp + 0xe0], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403ce2
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x1b0]
lea esi, [esp + 0xd0]
call fcn.0040c040
sub esp, 0x1c
mov esi, esp
mov byte [esp + 0x9d8], 0x10
xor eax, eax
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
mov dword [esp + 0x38], esp
mov word [esi + 4], ax
push 8
mov eax, str.jBridger
call fcn.0040c040
sub esp, 0x1c
mov byte [esp + 0x9f4], 0x11
mov ecx, esp
mov dword [esp + 0x50], esp
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0x10c]
mov word [ecx + 4], dx
call fcn.00409fc0
mov byte [esp + 0x9f4], 0x10
call fcn.00402680
add esp, 0x38
cmp dword [esp + 0xe4], 8
jb 0x403d84
mov eax, dword [esp + 0xd0]
push eax
call fcn.00410308
add esp, 4
cmp dword [esp + 0x18c], 8
jb 0x403d9e
mov ecx, dword [esp + 0x178]
push ecx
call fcn.00410308
add esp, 4
mov ecx, dword [esp + 0x24]
xor edx, edx
mov dword [esp + 0x18c], ebp
mov dword [esp + 0x188], ebx
mov word [esp + 0x178], dx
mov edx, dword [ecx + 4]
lea eax, [esp + 0x78]
mov dword [esp + 0x1c], eax
mov dword [esp + edx + 0x24], vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
lea eax, [esp + 0x28]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], vtable.std::basic_filebuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [esp + 0x9bc], 0x13
cmp byte [esp + 0x70], bl
je 0x403df2
mov esi, eax
call fcn.0040a8f0
mov dword [esp + 0x28], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [esp + 0x9bc], 0x14
mov eax, dword [esp + 0x60]
mov ebp, eax
cmp eax, ebx
je 0x403e57
mov edi, dword [eax]
cmp edi, ebx
je 0x403e4e
push ebx
lea ecx, [esp + 0x1c]
call fcn.0040f4e2
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x403e2c
cmp eax, 0xffffffff
jae 0x403e2c
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x18]
and esi, edi
call fcn.0040f50a
cmp esi, ebx
je 0x403e4e
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push ebp
call fcn.00410308
add esp, 4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x9bc], 0x12
call fcn.00410188
mov byte [esp + 0x9bc], 0xb
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 4]
lea eax, [esp + 0x78]
mov dword [esp + edx + 0x24], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
push eax
mov dword [esp + 0x7c], vtable.std::ios_base.0
call fcn.0041004b
mov esi, 8
add esp, 4
cmp dword [esp + 0x170], esi
jb 0x403eb2
mov ecx, dword [esp + 0x15c]
push ecx
call fcn.00410308
add esp, 4
xor edx, edx
mov edi, 7
mov dword [esp + 0x170], edi
mov dword [esp + 0x16c], ebx
mov word [esp + 0x15c], dx
cmp dword [esp + 0x138], esi
jb 0x403ee8
mov eax, dword [esp + 0x124]
push eax
call fcn.00410308
add esp, 4
xor ecx, ecx
mov dword [esp + 0x138], edi
mov dword [esp + 0x134], ebx
mov word [esp + 0x124], cx
cmp dword [esp + 0x11c], esi
jb 0x403f19
mov edx, dword [esp + 0x108]
push edx
call fcn.00410308
add esp, 4
xor eax, eax
mov dword [esp + 0x11c], edi
mov dword [esp + 0x118], ebx
mov word [esp + 0x108], ax
cmp dword [esp + 0x154], esi
jb 0x403f4a
mov ecx, dword [esp + 0x140]
push ecx
call fcn.00410308
add esp, 4
xor edx, edx
mov dword [esp + 0x154], edi
mov dword [esp + 0x150], ebx
mov word [esp + 0x140], dx
cmp dword [esp + 0x100], esi
jb 0x403f7b
mov eax, dword [esp + 0xec]
push eax
call fcn.00410308
add esp, 4
xor ecx, ecx
mov dword [esp + 0x100], edi
mov dword [esp + 0xfc], ebx
mov word [esp + 0xec], cx
cmp dword [esp + 0x1a8], esi
jb 0x403fac
mov edx, dword [esp + 0x194]
push edx
call fcn.00410308
add esp, 4
xor eax, eax
mov dword [esp + 0x1a8], edi
mov dword [esp + 0x1a4], ebx
mov word [esp + 0x194], ax
cmp dword [esp + 0x9dc], esi
jb 0x403fdd
mov ecx, dword [esp + 0x9c8]
push ecx
call fcn.00410308
add esp, 4
xor edx, edx
mov dword [esp + 0x9dc], edi
mov dword [esp + 0x9d8], ebx
mov word [esp + 0x9c8], dx
cmp dword [esp + 0x9f8], esi
jb 0x40400e
mov eax, dword [esp + 0x9e4]
push eax
call fcn.00410308
add esp, 4
xor ecx, ecx
mov dword [esp + 0x9f8], edi
mov dword [esp + 0x9f4], ebx
mov word [esp + 0x9e4], cx
cmp dword [esp + 0xa14], esi
jb 0x40403f
mov edx, dword [esp + 0xa00]
push edx
call fcn.00410308
add esp, 4
mov ecx, dword [esp + 0x9b4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x998]
xor ecx, esp
call fcn.004102f9
add esp, 0x9ac
ret