Function at 0x4033b0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2448
call fcn.0045db90
mov eax, dword [0x4920c0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x2448], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x2440], eax
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x232]
push eax
mov edi, ecx
call fcn.00455910
add esp, 0xc
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x434], ax
lea eax, [ebp - 0x432]
push eax
call fcn.00455910
xor bl, bl
add esp, 0xc
mov byte [ebp - 0x2444], 0
mov byte [ebp - 0x2439], 0
mov byte [ebp - 0x243a], bl
cmp byte [edi + 0x1a], bl
jne 0x403451
push 1
mov ecx, edi
call fcn.00402ff0
cmp byte [edi + 0x1a], bl
je 0x4037a9
mov byte [ebp - 0x243a], 1
push 0x46b774
lea eax, [ebp - 0x30]
push 0x14
push eax
call fcn.004513ee
mov eax, dword [edi + 4]
add esp, 0xc
cmp eax, 3
je 0x40347d
cmp eax, 4
je 0x40347d
cmp eax, 5
jne 0x403490
push str._ccsUTF_16LE
jmp 0x403482
push str._ccsUTF_8
lea eax, [ebp - 0x30]
push 0x14
push eax
call fcn.00451274
add esp, 0xc
lea ecx, [ebp - 0x30]
push ecx
lea eax, [edi + 0x820]
push eax
lea eax, [ebp - 0x2438]
push eax
call fcn.004509bf
add esp, 0xc
mov dword [edi], eax
test eax, eax
jne 0x4037a9
mov eax, dword [ebp - 0x2438]
test eax, eax
je 0x4037a9
cmp dword [edi + 4], 3
jne 0x4034d1
push eax
call fcn.00450df6
add esp, 4
push 0
push dword [edi + 0xc]
push dword [edi + 0x1c]
call fcn.0045136f
add esp, 0xc
push dword [edi + 0x1c]
call fcn.00450b7c
add esp, 4
test eax, eax
jne 0x4036f7
push dword [edi + 0x1c]
xor eax, eax
mov word [ebp - 0x1434], ax
lea eax, [ebp - 0x1434]
push 0x800
push eax
call fcn.00450efc
lea ecx, [ebp - 0x1434]
add esp, 0xc
mov bh, bl
xor bl, bl
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403521
sub ecx, edx
sar ecx, 1
cmp ecx, 0x800
jae 0x403577
xor ecx, ecx
mov bl, 1
cmp word [ebp - 0x1434], cx
je 0x403577
lea eax, [ebp - 0x1434]
jmp 0x403550
movzx eax, word [eax]
cmp eax, 0x20
je 0x403562
cmp eax, 0xa
je 0x403562
cmp eax, 0xd
jne 0x403575
inc ecx
lea eax, [ebp - 0x1434]
cmp word [eax + ecx*2], 0
lea eax, [eax + ecx*2]
jne 0x403550
jmp 0x403577
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.004037c0
push dword [ebp - 0x2448]
lea eax, [ebp - 0x234]
push eax
call fcn.0044fe43
mov ecx, dword [ebp - 0x2444]
push dword [ebp - 0x2448]
test eax, eax
movzx ecx, cl
mov eax, 1
cmove ecx, eax
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 0x2444], ecx
call fcn.0044fe43
add esp, 0x10
test eax, eax
jne 0x403620
push dword [ebp - 0x2440]
lea eax, [ebp - 0x434]
push eax
call fcn.0044fe43
add esp, 8
test eax, eax
jne 0x403620
push esi
lea eax, [ebp - 0x434]
push eax
push str._s_s_n
push dword [ebp - 0x2438]
mov bh, 1
mov byte [ebp - 0x2439], bh
call fcn.00450eb5
add esp, 0x10
jmp 0x4036bb
push dword [ebp - 0x2448]
lea eax, [ebp - 0x234]
push eax
call fcn.0044fe43
add esp, 8
test eax, eax
je 0x403672
cmp byte [ebp - 0x2444], 0
je 0x403672
cmp byte [ebp - 0x2439], 0
jne 0x403672
push esi
push dword [ebp - 0x2440]
mov byte [ebp - 0x2439], 1
push str._s_s_n
push dword [ebp - 0x2438]
call fcn.00450eb5
add esp, 0x10
test bh, bh
je 0x4036a0
jmp 0x40368d
test bl, bl
jne 0x4036b5
test bh, bh
je 0x4036a0
mov ax, word [ebp - 0x1434]
cmp ax, 0x3b
je 0x40368d
cmp ax, 0x5b
jne 0x4036a0
push dword [ebp - 0x2438]
push 0x46b7c8
call fcn.00450fb8
add esp, 8
push dword [ebp - 0x2438]
lea eax, [ebp - 0x1434]
push eax
call fcn.00450fb8
add esp, 8
mov bh, byte [ebp - 0x2439]
push dword [edi + 0x1c]
call fcn.00450b7c
add esp, 4
test eax, eax
je 0x4034f4
cmp byte [ebp - 0x2444], 0
je 0x4036f7
test bh, bh
jne 0x40373c
push esi
push dword [ebp - 0x2440]
push str._s_s_n
push dword [ebp - 0x2438]
call fcn.00450eb5
add esp, 0x10
jmp 0x40373c
push dword [ebp - 0x2448]
cmp byte [ebp - 0x243a], 0
mov ecx, 0x46b7cc
mov eax, 0x46b720
cmove eax, ecx
push eax
push str._s__s__n
push dword [ebp - 0x2438]
call fcn.00450eb5
push esi
push dword [ebp - 0x2440]
push str._s_s_n
push dword [ebp - 0x2438]
call fcn.00450eb5
add esp, 0x20
cmp byte [edi + 0x1a], 0
je 0x403756
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x403752
push eax
call fcn.004514b6
add esp, 4
mov byte [edi + 0x1a], 0
push dword [ebp - 0x2438]
call fcn.004514b6
add esp, 4
lea eax, [edi + 0x20]
push 0
push eax
lea ebx, [edi + 0x820]
push ebx
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
push ebx
mov esi, eax
call fcn.00450ece
add esp, 4
mov ecx, edi
push 0
call fcn.00402ff0
cmp byte [edi + 0x1a], 0
je 0x4037a9
test esi, esi
setne al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0044fdac
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0044fdac
mov esp, ebp
pop ebp
ret 0xc