Function at 0x403280
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2450
call fcn.0047a9b0
mov eax, dword [0x49f008]
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.00465300
add esp, 0xc
lea eax, [ebp - 0x434]
push 0x200
push 0
push eax
call fcn.00465300
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 0x403317
push 1
mov ecx, edi
call fcn.00402dd0
cmp byte [edi + 0x1e], bl
je 0x403689
mov byte [ebp - 0x243a], 1
cmp byte [edi + 0xc], 0
je 0x403322
mov esi, dword [edi + 8]
jmp 0x403325
mov esi, dword [edi + 4]
push 0x487d6c
lea eax, [ebp - 0x30]
push 0x14
push eax
call fcn.0046b918
add esp, 0xc
cmp esi, 3
je 0x40334e
cmp esi, 4
je 0x40334e
cmp esi, 5
jne 0x403361
push str._ccsUTF_16LE
jmp 0x403353
push 0x487d74
lea eax, [ebp - 0x30]
push 0x14
push eax
call fcn.0046b97c
add esp, 0xc
lea ecx, [ebp - 0x30]
push ecx
lea eax, [edi + 0x824]
push eax
lea eax, [ebp - 0x2438]
push eax
call fcn.0046b446
add esp, 0xc
mov dword [edi], eax
test eax, eax
jne 0x403689
mov eax, dword [ebp - 0x2438]
test eax, eax
je 0x403689
cmp esi, 3
jne 0x4033a1
push eax
call fcn.0046bcd1
add esp, 4
push 0
push dword [edi + 0x10]
push dword [edi + 0x20]
call fcn.0046b8fd
add esp, 0xc
push dword [edi + 0x20]
call fcn.0046be6e
mov esi, dword [ebp - 0x244c]
add esp, 4
test eax, eax
jne 0x4035d6
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.0046be63
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 0x403400
sub ecx, edx
sar ecx, 1
cmp ecx, 0x800
jae 0x403456
mov ax, word [ebp - 0x1434]
xor ecx, ecx
mov bl, 1
test ax, ax
je 0x403456
movzx edx, ax
nop word [eax + eax]
movzx eax, dx
cmp eax, 0x20
je 0x403442
cmp eax, 0xa
je 0x403442
cmp eax, 0xd
jne 0x403454
movzx eax, word [ebp + ecx*2 - 0x1432]
inc ecx
mov edx, eax
test ax, ax
jne 0x403430
jmp 0x403456
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.004036a0
push dword [ebp - 0x2444]
lea eax, [ebp - 0x234]
push eax
call fcn.00467591
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.00467591
add esp, 0x10
test eax, eax
jne 0x4034ff
push dword [ebp - 0x2448]
lea eax, [ebp - 0x434]
push eax
call fcn.00467591
add esp, 8
test eax, eax
jne 0x4034ff
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.00402a10
add esp, 0x10
jmp 0x40359a
push dword [ebp - 0x2444]
lea eax, [ebp - 0x234]
push eax
call fcn.00467591
add esp, 8
test eax, eax
je 0x403551
cmp byte [ebp - 0x2440], 0
je 0x403551
cmp byte [ebp - 0x2439], 0
jne 0x403551
push esi
push dword [ebp - 0x2448]
mov byte [ebp - 0x2439], 1
push str._s_s_n
push dword [ebp - 0x2438]
call fcn.00402a10
add esp, 0x10
test bh, bh
je 0x40357f
jmp 0x40356c
test bl, bl
jne 0x403594
test bh, bh
je 0x40357f
mov ax, word [ebp - 0x1434]
cmp ax, 0x3b
je 0x40356c
cmp ax, 0x5b
jne 0x40357f
push dword [ebp - 0x2438]
push 0x487dc0
call fcn.0046b5ab
add esp, 8
push dword [ebp - 0x2438]
lea eax, [ebp - 0x1434]
push eax
call fcn.0046b5ab
add esp, 8
mov bh, byte [ebp - 0x2439]
push dword [edi + 0x20]
call fcn.0046be6e
add esp, 4
test eax, eax
je 0x4033d0
cmp byte [ebp - 0x2440], 0
je 0x4035d6
test bh, bh
jne 0x40361b
push esi
push dword [ebp - 0x2448]
push str._s_s_n
push dword [ebp - 0x2438]
call fcn.00402a10
add esp, 0x10
jmp 0x40361b
push dword [ebp - 0x2444]
cmp byte [ebp - 0x243a], 0
mov ecx, 0x487dc4
mov eax, 0x487d18
cmove eax, ecx
push eax
push str._s__s__n
push dword [ebp - 0x2438]
call fcn.00402a10
push esi
push dword [ebp - 0x2448]
push str._s_s_n
push dword [ebp - 0x2438]
call fcn.00402a10
add esp, 0x20
cmp byte [edi + 0x1e], 0
je 0x403635
mov eax, dword [edi + 0x20]
test eax, eax
je 0x403631
push eax
call fcn.0046b52b
add esp, 4
mov byte [edi + 0x1e], 0
push dword [ebp - 0x2438]
call fcn.0046b52b
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.0046b48d
add esp, 4
mov ecx, edi
push 0
call fcn.00402dd0
cmp byte [edi + 0x1e], 0
je 0x403689
test esi, esi
je 0x403689
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004632a0
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.004632a0
mov esp, ebp
pop ebp
ret 0xc