Function at 0x403370
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2450
call fcn.004839d0
mov eax, dword [0x4ab00c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x2444], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x2448], eax
mov edi, ecx
mov eax, dword [ebp + 0x10]
push 0x200
mov dword [ebp - 0x244c], eax
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.0046dcc0
add esp, 0xc
lea eax, [ebp - 0x434]
push 0x200
push 0
push eax
call fcn.0046dcc0
xor bl, bl
mov byte [ebp - 0x2440], 0
add esp, 0xc
mov byte [ebp - 0x2439], 0
mov byte [ebp - 0x243a], bl
cmp byte [edi + 0x1e], bl
jne 0x403407
push 1
mov ecx, edi
call fcn.00402ec0
cmp byte [edi + 0x1e], bl
je 0x403779
mov byte [ebp - 0x243a], 1
cmp byte [edi + 0xc], 0
je 0x403412
mov esi, dword [edi + 8]
jmp 0x403415
mov esi, dword [edi + 4]
push 0x491e2c
lea eax, [ebp - 0x30]
push 0x14
push eax
call fcn.00474910
add esp, 0xc
cmp esi, 3
je 0x40343e
cmp esi, 4
je 0x40343e
cmp esi, 5
jne 0x403451
push str._ccsUTF_16LE
jmp 0x403443
push 0x491e34
lea eax, [ebp - 0x30]
push 0x14
push eax
call fcn.00474974
add esp, 0xc
lea ecx, [ebp - 0x30]
push ecx
lea eax, [edi + 0x824]
push eax
lea eax, [ebp - 0x2438]
push eax
call fcn.0047443e
add esp, 0xc
mov dword [edi], eax
test eax, eax
jne 0x403779
mov eax, dword [ebp - 0x2438]
test eax, eax
je 0x403779
cmp esi, 3
jne 0x403491
push eax
call fcn.00474cc9
add esp, 4
push 0
push dword [edi + 0x10]
push dword [edi + 0x20]
call fcn.004748f5
add esp, 0xc
push dword [edi + 0x20]
call fcn.00474e66
mov esi, dword [ebp - 0x244c]
add esp, 4
test eax, eax
jne 0x4036c6
nop word [eax + eax]
push dword [edi + 0x20]
xor eax, eax
mov word [ebp - 0x1434], ax
lea eax, [ebp - 0x1434]
push 0x800
push eax
call fcn.00474e5b
lea ecx, [ebp - 0x1434]
add esp, 0xc
mov bh, bl
lea edx, [ecx + 2]
xor bl, bl
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4034f0
sub ecx, edx
sar ecx, 1
cmp ecx, 0x800
jae 0x403546
mov ax, word [ebp - 0x1434]
xor ecx, ecx
mov bl, 1
test ax, ax
je 0x403546
movzx edx, ax
nop word [eax + eax]
movzx eax, dx
cmp eax, 0x20
je 0x403532
cmp eax, 0xa
je 0x403532
cmp eax, 0xd
jne 0x403544
movzx eax, word [ebp + ecx*2 - 0x1432]
inc ecx
mov edx, eax
test ax, ax
jne 0x403520
jmp 0x403546
xor bl, bl
push ecx
lea eax, [ebp - 0x2434]
push eax
push ecx
lea eax, [ebp - 0x434]
push eax
push ecx
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x1434]
push eax
call fcn.00403790
push dword [ebp - 0x2444]
lea eax, [ebp - 0x234]
push eax
call fcn.0046ff51
mov ecx, dword [ebp - 0x2440]
test eax, eax
push dword [ebp - 0x2444]
movzx ecx, cl
mov eax, 1
cmove ecx, eax
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 0x2440], ecx
call fcn.0046ff51
add esp, 0x10
test eax, eax
jne 0x4035ef
push dword [ebp - 0x2448]
lea eax, [ebp - 0x434]
push eax
call fcn.0046ff51
add esp, 8
test eax, eax
jne 0x4035ef
push esi
lea eax, [ebp - 0x434]
mov bh, 1
push eax
push str._s_s_n
push dword [ebp - 0x2438]
mov byte [ebp - 0x2439], bh
call fcn.00402b00
add esp, 0x10
jmp 0x40368a
push dword [ebp - 0x2444]
lea eax, [ebp - 0x234]
push eax
call fcn.0046ff51
add esp, 8
test eax, eax
je 0x403641
cmp byte [ebp - 0x2440], 0
je 0x403641
cmp byte [ebp - 0x2439], 0
jne 0x403641
push esi
push dword [ebp - 0x2448]
mov byte [ebp - 0x2439], 1
push str._s_s_n
push dword [ebp - 0x2438]
call fcn.00402b00
add esp, 0x10
test bh, bh
je 0x40366f
jmp 0x40365c
test bl, bl
jne 0x403684
test bh, bh
je 0x40366f
mov ax, word [ebp - 0x1434]
cmp ax, 0x3b
je 0x40365c
cmp ax, 0x5b
jne 0x40366f
push dword [ebp - 0x2438]
push 0x491e80
call fcn.004745a3
add esp, 8
push dword [ebp - 0x2438]
lea eax, [ebp - 0x1434]
push eax
call fcn.004745a3
add esp, 8
mov bh, byte [ebp - 0x2439]
push dword [edi + 0x20]
call fcn.00474e66
add esp, 4
test eax, eax
je 0x4034c0
cmp byte [ebp - 0x2440], 0
je 0x4036c6
test bh, bh
jne 0x40370b
push esi
push dword [ebp - 0x2448]
push str._s_s_n
push dword [ebp - 0x2438]
call fcn.00402b00
add esp, 0x10
jmp 0x40370b
push dword [ebp - 0x2444]
cmp byte [ebp - 0x243a], 0
mov ecx, 0x491e84
mov eax, 0x491dd8
cmove eax, ecx
push eax
push str._s__s__n
push dword [ebp - 0x2438]
call fcn.00402b00
push esi
push dword [ebp - 0x2448]
push str._s_s_n
push dword [ebp - 0x2438]
call fcn.00402b00
add esp, 0x20
cmp byte [edi + 0x1e], 0
je 0x403725
mov eax, dword [edi + 0x20]
test eax, eax
je 0x403721
push eax
call fcn.00474523
add esp, 4
mov byte [edi + 0x1e], 0
push dword [ebp - 0x2438]
call fcn.00474523
add esp, 4
lea eax, [edi + 0x24]
lea ebx, [edi + 0x824]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push ebx
mov esi, eax
call fcn.00474485
add esp, 4
mov ecx, edi
push 0
call fcn.00402ec0
cmp byte [edi + 0x1e], 0
je 0x403779
test esi, esi
je 0x403779
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0046b9f0
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046b9f0
mov esp, ebp
pop ebp
ret 0xc